Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A dependent dll was not found

My app does not run on "Release x86" when running the app it crashes immediately after the splash screen. Output shows the following exception:

The program '[8204] dfz.exe' has exited with code -1073741515 (0xc0000135) 'A dependent DLL was not found'.

It also tells me the module is build without symbols, however in build settings I have set debug info to Full.

The first time I build the app for the Windows Store it built correctly and I also published that version to the store. When I did a manual rebuild to check if ads where inserted correctly it would not run.

However, I can run the app on ARM and X64 with no problems on release. Only x86 with .Net native toolchain will throw the missing dependant DLL.

What I have tried so far:

  1. Created a new project, Added all my files and Nuget packages, No dice
  2. Removed and updated all my existing references.
  3. Tried to debug the release version so i can find out what DLL is missing from the package. However it keeps telling me there are no symbol files.

I am looking for any suggestions I can try because I am really at a loss here of why it will not run on x86.

Edit: A blank UWP project also returns the DLL error when i run it. It looks like i have a broken development environment.

Edit2: Just did a remote debugging session to another laptop and the app worked with no problems. So the problem is an environment related issue.

like image 341
Speedydown Avatar asked Jan 17 '16 19:01

Speedydown


1 Answers

Could one of the projects in your dependencies be configured specifically for x64?

Another thing to check is that one of your projects is not set to build for that configuration (I vaguely remember some problem I had years ago that sounds kind like your situation ... although not for windows store apps ... and it turned out one of my projects wasn't set to compile for the configuration I was selecting ).

like image 118
Paul Avatar answered Oct 19 '22 21:10

Paul