When I try to load a mixed-mode (managed and unmanaged) dll from C# pure managed at runtime it fails. How can I manage loading a dll file which has both managed C++/CLI and unmanaged C++ code?
- Changed type Peter RitchieMVP, Moderator Friday, October 17, 2008 1:19 PM To discussion, no useable solution presented.
Here we go...this is what I got as an unhandled exception thrown at run time complaining about the mixed mode dll.
Could not load file or assembly 'RenderingEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
The DLL project consists of C++/CLI and pure unmanaged classes. The main Dll class which is a pure C++/CLI.