EEFileLoadException when using C# classes in C++(win32 app)

前端 未结 6 839
闹比i
闹比i 2020-12-05 13:25

For deployment reasons, I am trying to use IJW to wrap a C# assembly in C++ instead of using a COM Callable Wrapper.

I\'ve done it on other projects, but on this o

6条回答
  •  我在风中等你
    2020-12-05 14:02

    For you native application consuming the mixed mode dll (Your EXE), change the **"Debugger Type" to "Mixed" mode. (Go to Project Properties -> Configuration Properties -> Debugging)

    There are some other points (which might not be relevant to you) but in my experience they could cause issues. - On windows 8 (with tighter security) please try launching your VS as admin. - Make sure that for x86 configuration you are using x86 binaries. - Watch for StrongName verification, if your C# assemblies which you are consuming in Managed C++ as signed, please consider signing the mixed mode dll too.

    Hope this would help.

提交回复
热议问题