Could not load file or assembly 'log4net'

怎甘沉沦 提交于 2019-12-25 08:26:04

问题


My crystal report page gives an error "Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference." Do I have to have ddl for 1.2.10 or 1.2.11 in bin folder? Or what can be wrong?


回答1:


If you have a x86 development machine and your web server is a 64-bit machine, you may be running into the problem discussed in this thread.

Visual Studio is automatically deploying a 32-bit log4net.dll into the 64-bit web server, even if you don't have it referenced in your project. Just delete the log4net.dll from your bin directory once deployment has finished because it's not actually required by the CR runtime to work.



来源:https://stackoverflow.com/questions/10137023/could-not-load-file-or-assembly-log4net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!