Im migratin a WIN-FORM proyect to a new ASP.NET WEB-PROYECT. The problem is with a dll, this was made from a C++/CLI proyect, when I build the web site I get an error:
Could not load file or assembly 'F3BC4DNI_32' one of its dependencies. The located assembly's manifest definition does not match the assembly reference (Exception de HRESULT: 0x80131040)
Here the full error: Error here
Both proyects are using framework v4.
C++/CLI win32
People say that should use PInvoke, but I need to call the class name too and DllImport only works for methods (as I know).
Also People say I should add my dll to COM or .NET list. I run it with REGSVR32 but it gives me an error
Does anybody knows what could it be?
Thanks
VulpesPosted Mar 5, 2014, 12:09 PM
It might or might not correctly show what other dlls are referenced.
To check dependencies on a .NET dll, I'd use a specialist tool such as ildasm.exe (available from VS Command Prompt) which should show you what external assemblies are referenced in the manifest.
Martin Eduardo Martinez DimasPosted Mar 5, 2014, 10:28 AM
VulpesPosted Mar 4, 2014, 7:21 PM
If there are any custom (as opposed to system) dlls on which your dll depends, I'd copy them to the /bin folder as well so the system can find them.
Martin Eduardo Martinez DimasPosted Mar 4, 2014, 6:54 PM
VulpesPosted Mar 4, 2014, 5:56 PM
If this is ringing any bells, I'd check the version of the dll shown in web.config against the current version of the dll to see whether they differ.