Could not load file or assembly 'log4net'
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?
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.
链接地址: http://www.djcxy.com/p/43656.html下一篇: 无法加载文件或程序集'log4net'