I noticed that an application that I've been working on is crashing on startup when run on a virtual machine. The error is an unhandled exception which when caught claims "Could not load File or Assembly 'xyz.dll' or one of its dependencies".
Said DLL is in the same folder as the .exe as it normally is on other machines. The DLL is a C++ project which uses CLR to interface with the rest of the C# program. The entire program is built with .Net4.5 in visual studio 2013.
The virtual machine setup is:
Using Virtual Box Windows 7 32 bit:
- 512mb Ram
- 25GB VDI Hardrive with Dynamic Size
- Windows 7 Professional x86 with SP1
- .Net4.0 via Offline Installer
- .Net4.5 via Offline Installer
The program works fine on multiple other systems such as Windows 7 Embedded. The only place it won't run so far is the virtual machine. I'm just wondering if running it on a virtual machine would have any issues that aren't immediately obvious?
Or whether I'm missing something with the .Net installations?
I've tried all the other answers that I could find on this issue such as cleaning and rebuilding everything or restarting visual studio. The only thing I can think of is that I am missing a dependency which hasn't been installed by .Net4 or 4.5.