无法加载文件或程序集"log4net" [英] Could not load file or assembly 'log4net'

查看:921
本文介绍了无法加载文件或程序集"log4net"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的水晶报表页面显示错误无法加载文件或程序集'log4net,版本= 1.2.10.0,文化=中性,PublicKeyToken = 692fbea5521e1304'或其依赖项之一.找到的程序集的清单定义与程序集不匹配参考." 我必须在bin文件夹中拥有1.2.10或1.2.11的ddl吗?还是有什么问题呢?

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?

推荐答案

如果您使用的是x86开发计算机,并且您的Web服务器是64位计算机,则可能会遇到问题

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也会自动将32位log4net.dll部署到64位Web服务器中.部署完成后,只需从bin目录中删除log4net.dll,因为CR运行时实际上并不需要它.

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.

这篇关于无法加载文件或程序集"log4net"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆