无法加载文件或程序集 'Microsoft.ReportViewer.Common,版本 = 11.0.0.0 [英] Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0

查看:27
本文介绍了无法加载文件或程序集 'Microsoft.ReportViewer.Common,版本 = 11.0.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的 n 层解决方案从 .NET 3.5 与 2008 升级到 4.5 Visual Studio 2012.除了水晶报告之外,一切都很好,我不得不从以下链接为 Visual Studio 2012 安装新的运行时水晶报告 http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe.安装上述包后,我必须解决一些不推荐使用的功能和属性CrystalViewer 和之后的报告在开发环境中正确呈现(Windows 7 64 位、SQL Server 2005、Visual Studio 2012).当我在测试环境 windows server 2008 R2 中部署包时应用程序因抛出错误而无法加载无法加载文件或程序集 Microsoft.ReportViewer.WebForms, Version=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 of CrystalViewer 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 R2 the Application failed to load by throwing error Could not load file or assembly Microsoft.ReportViewer.WebForms, Version=11

我通过复制 DLL 设法解决了 ReportViewer.WebForms 错误从 C:Program Files (x86)Microsoft Visual Studio 11.0ReportViewer 到解决方案的 bin 文件夹并设置属性 copylocal = true 并部署包.之后,我收到错误 无法加载文件或程序集 'Microsoft.ReportViewer.Common, Version=11.0.0.0 .我试图在我的机器上搜索那个 DLL,但不能.当项目在 Visual Studio 中运行时,在 Debug-> Windows->Module 中,该文件未在全局程序集缓存中列出,但已安装该文件,但我不知道它是如何安装到全局缓存中的从哪里 .我找到了一种解决方案,我必须从 microsoft 包中安装 ReportViewer.msi,但是如果我安装了这个包,它会要求我安装我不想安装的 SQL Server 2012.任何人都可以帮我解决这个问题.谢谢

I managed to resolve ReportViewer.WebForms error by copying the DLL from C:Program Files (x86)Microsoft Visual Studio 11.0ReportViewer 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 Runtime 并更改您的引用,使其指向运行时安装的引用.

You can install the Microsoft Report Viewer 2012 Runtime and change your references so they point to the ones installed by the runtime.

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

我已经安装了运行时,但没有要求 SQL Server 2012.在安装之前尝试卸载任何以前版本的报告查看器.

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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