我最近将我的n层解决方案从.NET 3.5 vs 2008 to 4.5 visual studio 2012升级.除了Crystal Reports之外,一切都很顺利,我不得不从下面的链接http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe为visual studio 2012安装新的运行时Crystal Reports. 在安装了上面的软件包之后,我必须解析一些不推荐使用的函数和属性 CrystalViewer,然后报告在开发环境(Windows 7 64 bit, SQL Server 2005, Visual Studio 2012)中正确呈现.当我在测试环境中部署软件包时(Windows Server 2008 R2). 由于引发错误,应用程序加载失败 无法加载文件或程序集Microsoft.ReportViewer.WebForms, Version=11

I managed to resolve ReportViewer.WebForms error by copying the DLL from C:\Program Files (x86)\Microsoft Visual Studio 11.0\ReportViewer to bin folder of solution and set property copylocal = true and deployed the package. After that I received the error Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0 . I tried to search that DLL on my machine but couldn't. when project is running in visual studio, In Debug-> Windows->Module the file is not listed however in global assembly cache that file is installed but I don't know how its installed to global cache and from where . I found one solution that I had to install ReportViewer.msi from microsoft package but if i install this package it asks me to install SQL Server 2012 which I dont wan't. Could any one help me to resolve this issue. Thanks

推荐答案

您可以安装Microsoft Report Viewer 2012运行时并更改引用,以便它们指向运行时安装的引用.

http://www.microsoft.com/en-gb/download/details.aspx?id=35747

我安装了运行时,但没有要求SQL Server 2012.在安装之前,请try 卸载任何早期版本的报表查看器.

Asp.net相关问答推荐

设置主键时KeyAttribute属性不起作用

DBSet 不包含 Where 的定义

如何在asp.net中单击按钮的新选项卡中打开页面?

如何调试 Azure 500 内部服务器错误

Anti-Forgery Token 适用于不同的基于声明的用户

使用 JavaScript 更改 ASP.NET 标签的可见性

在 Blazor 中 Select 框绑定

显示单选按钮列表内联

Web Api 参数始终为空

如何在 ASP.NET 页面中以编程方式生成 401 错误

无法序列化会话状态

什么是实体框架中的复杂类型以及何时使用它?

与 Twitter Bootstrap Bundle 的 ASP.NET MVC4

DropDownList AppendDataBoundItems(第一项为空白且无重复项)

将查询参数绑定到 ASP.NET Core 中的模型

如何获取正在访问 ASP.NET 应用程序的当前用户?

在 Visual Studio 2010 Professional 中找不到请求的 .Net Framework 数据提供程序

如何从url中删除returnurl?

如何使用 ConfigurationManager.AppSettings

重新生成designer.cs