我最近将我的n层解决方案从.NET 3.5 vs 2008升级到4.5 visual studio 2012.除了水晶报告之外,每件事都很顺利,我必须从以下链接http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe为visual studio 2012安装新的运行时水晶报告.安装上面的软件包之后,我必须解决CrystalViewer的一些不赞成使用的功能和属性,然后在开发环境中正确报告呈现(Windows 7 64位,SQL Server 2005,Visual Studio 2012).当我在测试环境windows server 2008 R2中部署包时,应用程序无法通过抛出错误加载无法加载文件或程序集Microsoft.ReportViewer.WebForms,Version = 11
我设法通过将DLL从C:\ Program Files(x86)\ Microsoft Visual Studio 11.0\ReportViewer复制到解决方案的bin文件夹并设置属性copylocal = true并部署包来解决ReportViewer.WebForms错误.之后我收到错误无法加载文件或程序集'Microsoft.ReportViewer.Common,Version = 11.0.0.0.我试图在我的机器上搜索该DLL,但却无法.当项目在visual studio中运行时,在Debug-> Windows-> Module中 ,文件未列出,但是在全局程序集缓存中安装了该文件,但我不知道它是如何安装到全局缓存的,以及从哪里安装.我找到了一个解决方案,我必须从microsoft软件包安装ReportViewer.msi,但是如果我安装这个软件包,它会要求我安装SQL Server 2012,我不会这样做.任何人都可以帮我解决这个问题.谢谢
我使用Visual Studio 11 Beta(MVC3 + .Net 4.0).我将项目部署到IIS 7.5(MS 2008 Server),当我生成报告时,我遇到以下错误:
System.IO.FileNotFoundException:Die Datei oder程序集"Microsoft.ReportViewer.Common,Version = 11.0.0.0,Culture = neutral,PublicKeyToken = 89845dcd8080cc91"或其中一个依赖项未找到.该系统找不到指定的文件.
在我的本地开发人员机器上,我找不到"Microsoft.ReportViewer.Common.dll"版本11.0.0.0只有10,但本地它工作正常!:(
我在我的aspx页面中使用ReportViewer控件.我正在从远程处理模式访问报告.
这是我的代码:
ReportServerDomain = System.Configuration.ConfigurationSettings.AppSettings["ReportServerDomain"];
ReportServerUserName = System.Configuration.ConfigurationSettings.AppSettings["ReportServerUserName"];
ReportServerPassword = System.Configuration.ConfigurationSettings.AppSettings["ReportServerPassword"];
String ReportFolder = System.Configuration.ConfigurationSettings.AppSettings["ReportFolderName"];
rptUrl = new Uri(Convert.ToString(System.Configuration.ConfigurationSettings.AppSettings["ReportURL"]));
IReportServerCredentials irsc = new CustomReportCredentialsToCreateStatement(ReportServerUserName, ReportServerPassword, ReportServerDomain);
ReportViewer1.ServerReport.ReportServerCredentials = irsc;
ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
parameters = new ReportParameter[1];
parameters[0] = new ReportParameter("ClientStatementBatchId", ds.Tables["ClientStatemtntBatch"].Rows[0]["ClientStatementBatchID"].ToString());
ReportViewer1.ServerReport.ReportServerUrl = rptUrl;
ReportViewer1.ServerReport.ReportPath = "/" + ReportFolder + "/Client Statements";
ReportViewer1.ServerReport.SetParameters(parameters); // i am getting error on this line.
ReportViewer1.ServerReport.Refresh();
Run Code Online (Sandbox Code Playgroud)
错误是:
无法加载文件或程序集"Microsoft.ReportViewer.WebForms.XmlSerializers,Version = 9.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a"或其依赖项之一.该系统找不到指定的文件.
任何人都可以帮助我,如何解决这个问题?
谢谢,
D.Bernardin