Third party dll can't find its dependencies in ASP.NET MVC project

后端 未结 3 669
难免孤独
难免孤独 2021-01-15 01:40

I use third party library in my project. Call it like MainLibNET.dll. I added this library in References of my project. This dll has dependencies w

3条回答
  •  时光说笑
    2021-01-15 02:13

    ASP.NET uses shadow copying, which:

    enables assemblies that are used in an application domain to be updated without unloading the application domain.

    You can add the following item to your Web.config file to disable this sandboxing feature:

    
    ...
      
       ...
          
      
    
    

    This should allow you to load native DLL as you would for a .NET console application.

提交回复
热议问题