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

前端 未结 6 837
闹比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:21

    I was getting the C++ EEFileLoadException thrown a lot by iisexpress.exe during debugging of an ASP.NET MVC application. The call stack and C++ exception itself were not terribly helpful in helping me pin down the problem.

    After looking directly at the pointer address given in the C++ exception I eventually discovered a library string which was pointing to an old version no longer in use. This in turn was due to an out-of-date entry in my web.config file:

    
    
    
        
        
        
    

    I had upgraded various Microsoft.Own security libraries via NuGet to version 4.0.30319 but this line in the config was instructing the server to redirect calls to version 3.0.1.0, which was now no longer part of my project. Updating the config resovled my problems.

提交回复
热议问题