Crystal Reports 部署时出错..无法加载文件或程序集'log4net [英] Crystal Reports error when deployed..Could not load file or assembly 'log4net

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

问题描述

请帮忙.我有一个在 VS2010 中构建的 Web 应用程序,我们正在使用 2010 年的 CR 插件,并且在我们的本地机器上一切正常.当我们将 Web 应用程序部署到 Server 2008 时,应用程序运行良好,直到我们尝试获取报告.当我们收到报告时...

Please help. I have a web application that was built in VS2010 and we are using the CR plugin for 2010 and everything works perfect on our local machines. When we go to deploy the web application to Server 2008 the application runs fine until we try to get to a report. When we get to a report we receive...

Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. 

我们已经安装了 CR2010 运行时,并且文件 log4net.dll 版本 1.2.10.0 在 GAC 中,所以我们没有在应用程序中引用它.当我们将其添加为参考时,无论我们在应用程序中的哪个位置都会出现此错误,而不仅仅是在报告页面上.请帮忙!

We have installed the CR2010 runtimes and the file log4net.dll version 1.2.10.0 is in the GAC so we are not referencing it in the application. When we add it as a reference we get this error no matter where we are in the application, not just on the report pages. Please help!

推荐答案

我在x64机器上安装了x86版本的crystal reports redist后,收到了同样的错误信息.

I received the same error message after accidently installing the x86 version of the crystal reports redist on a x64 machine.

安装正确的 x64 redist 解决了问题 - http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0.zip

Installing the correct x64 redist fixed the problem - http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0.zip

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

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