Why do I get System.IO.FileLoadException: Could not load file or assembly, about once a week on my ASP.Net Website?

后端 未结 2 1357
耶瑟儿~
耶瑟儿~ 2021-01-05 16:09

I have a rather simple internal ASP.Net Website that has issues loading the Microsoft.Practices.EnterpriseLibrary.Data dll about once a week. Here is the Exception message:

相关标签:
2条回答
  • 2021-01-05 16:44

    Install the below nuget packages:

    Install-Package log4net -Version 2.0.0 Install-Package linqtoexcel

    Install-Package System.Data.Sqlite.x86 -Version 1.0.88.0 Install-Package ServiceStack -Version 3.9.71 Install-Package ServiceStack.OrmLite.Sqlite32 -Version 3.9.71

    0 讨论(0)
  • 2021-01-05 16:49

    Take a look at the Assembly Binding Log Viewer. It might point you in the right direction.

    I had a quick look at other SO answers and one person suggested that the application may have been developed against a signed version of the DLL but the production runtime only has access to an unsigned version. It looks like your production is loading an unsigned assembly (PublicKeyToken=null).

    0 讨论(0)
提交回复
热议问题