Crystal报告错误:无法加载程序集log4net [英] Crystal report error: could not load assembly log4net

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

问题描述

我在我的项目中使用水晶报表和查看器,在本地完美运行但在服务器上它会抛出以下错误:



无法加载文件或程序集 '  log4net,Version = 1.2 .10.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304'或其中一个依赖项。找到的程序集 ' 清单定义与程序集不匹配参考。 (HRESULT异常:0x80131040) 



bin里面有log4net v1.2.10.0文件。



我尝试过:



我尝试添加log4net文件并安装其他一些修复程序。

解决方案

您的服务器上没有log4net。当你将项目部署到服务器时,请确保有一个log4net dll ...这就是你的错误所说的。



在这里重新阅读你的问题您可以尝试一些选项:



部署时Crystal Reports错误..无法加载文件或程序集'log4net - Stack Overflow [ ^ ]



c# - 服务器错误 - 无法加载文件或程序集'log4net,版本= 1.2.10.0' - 堆栈溢出 [ ^ ]



crystal reports 2010 - 无法加载文件或程序集'log4net,Version = 1.2.10.0,Culture = neutral,PublicKeyToken = 692fbea5521e1304' - Stack Overflow [ ^ ]


没有log4net dll解决了这个问题,但安装Crystal Report Runtime就是解决方案。



我使用以下链接 Crystal Report Runtime



Thansk @ David

I am using crystal report and Viewer in my project that works perfectly on local but on server it throws following 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. (Exception from HRESULT: 0x80131040) 


I do have log4net v1.2.10.0 file inside bin.

What I have tried:

I tried adding log4net file and installing few other fixes.

解决方案

You don't have log4net on your server. When you deploy your project to the server, make sure that a log4net dll is there...that is what your error is saying.

Re-reading your question here are some options for you to try:

Crystal Reports error when deployed..Could not load file or assembly 'log4net - Stack Overflow[^]

c# - Server Error- Could not load file or assembly 'log4net, Version=1.2.10.0' - Stack Overflow[^]

crystal reports 2010 - Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' - Stack Overflow[^]


No log4net dll solves the issue but installing the Crystal Report Runtime is the solution.

I used following link Crystal Report Runtime

Thansk @David


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

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