问题描述
我最近我从 .NET 3.5的N层解决方案,VS 2008升级到4.5的Visual Studio 2012 。每一件事情都很好除了水晶报表并且我必须安装新的运行水晶报表的Visual Studio 2012从以下链接http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe.安装上述软件包后,我不得不解决一些去precated功能和性能CrystalViewer并报告在开发环境中正常呈现后的(Windows 7的64位SQL Server 2005中的Visual Studio 2012)。当我在测试环境中的Windows Server 2008 R2部署包应用程序通过抛出错误未能加载无法加载文件或程序集 Microsoft.ReportViewer.WebForms,版本= 11
I recently upgraded my n-tier solution from .NET 3.5 vs 2008 to 4.5 visual studio 2012. Every thing went fine apart from crystal reports and I had to install new runtime crystal reports for visual studio 2012 from the following link http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe.After installing the above package I had to resolve some deprecated function and properties ofCrystalViewer and after that reports rendering properly in development environment (Windows 7 64 bit, SQL Server 2005, Visual Studio 2012). When I deployed the package in test environment windows server 2008 R2the Application failed to load by throwing errorCould not load file or assembly Microsoft.ReportViewer.WebForms, Version=11
我设法通过复制DLL来解决ReportViewer.WebForms错误从 C:\ Program Files文件(x86)的\微软的Visual Studio 11.0 \的ReportViewer 以溶液bin文件夹,并设置属性的 copylocal = TRUE 并部署软件包。从那以后,我收到了错误的无法加载文件或程序集Microsoft.ReportViewer.Common,版本= 11.0.0.0 。我试图寻找该DLL我的机器上,但不能。当项目在Visual Studio中运行,在调试 - > Windows的>模块文件没有列出但在全局程序集缓存安装文件,但我不知道如何将其安装到全局缓存和来自哪里 。我找到了一个解决方案,我必须安装 ReportViewer.msi 从微软的方案,但如果我安装该软件包要求我先安装SQL Server 2012的,我不wan't。难道任何一个可以帮助我解决这个问题。谢谢
I managed to resolve ReportViewer.WebForms error by copying the DLLfrom 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报表查看器2012 Runtime和改变你的引用,以便它们指向运行时安装的。
You can install the Microsoft Report Viewer 2012 Runtime and change your references so they point to the ones installed by the runtime.
<一个href="http://www.microsoft.com/en-gb/download/details.aspx?id=35747">http://www.microsoft.com/en-gb/download/details.aspx?id=35747
我已经离不开它要求的SQL Server 2012的安装之前尝试卸载任何$ P $报表浏览器的pvious版本安装运行时。
I have installed the runtime without it asking for SQL Server 2012. Before installing try uninstalling any previous versions of report viewer.
这篇关于无法加载文件或程序集“Microsoft.ReportViewer.Common,版本= 11.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!