.net Microsoft.ReportViewer.Common 版本=12.0.0.0
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31169514/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Microsoft.ReportViewer.Common Version=12.0.0.0
提问by argyle
I'm getting the following exception in my Windows Service Application:
我的 Windows 服务应用程序出现以下异常:
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException:无法加载文件或程序集“Microsoft.ReportViewer.Common,Version=12.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91”或其依赖项之一。该系统找不到指定的文件。
I cannot find a download url for version 12 and setting the files to "Include" and "Prequisite (Auto)" does not solve the problem in this Windows Service Application, although it works fine in my WinForms Application and results in the appropriate files being included and referenced along with all other requisite .DLLs.
我找不到版本 12 的下载 url 并将文件设置为“包含”和“先决条件(自动)”并不能解决此 Windows 服务应用程序中的问题,尽管它在我的 WinForms 应用程序中运行良好并导致相应的文件被包括并与所有其他必需的 .DLL 一起引用。
Can someone either help me get this Windows Service Application to include the files, or lead me to a download link that will install Version 12 in the GAC?
有人可以帮助我获取此 Windows 服务应用程序以包含这些文件,或者引导我找到将在 GAC 中安装版本 12 的下载链接吗?
回答by David Tansey
Version 12 of the ReportViewer bits is referred to as Microsoft Report Viewer 2015 Runtimeand can downloaded for installation from the following link:
ReportViewer 位的第 12 版称为Microsoft Report Viewer 2015 Runtime,可以从以下链接下载安装:
https://www.microsoft.com/en-us/download/details.aspx?id=45496
https://www.microsoft.com/en-us/download/details.aspx?id=45496
UPDATE:
更新:
The ReportViewer bits are also available as a NUGET package: https://www.nuget.org/packages/Microsoft.ReportViewer.Runtime.Common/12.0.2402.15
ReportViewer 位也可用作 NUGET 包:https://www.nuget.org/packages/Microsoft.ReportViewer.Runtime.Common/12.0.2402.15
Install-Package Microsoft.ReportViewer.Runtime.Common
Install-Package Microsoft.ReportViewer.Runtime.Common
回答by manit
I worked on this issue for a few days. Installed all packages, modified web.config and still had the same problem. I finally removed
我在这个问题上工作了几天。安装了所有软件包,修改了 web.config 并且仍然有同样的问题。我终于删除了
<assemblies>
<add assembly="Microsoft.ReportViewer.Common, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</assemblies>
from the web.config and it worked. No exactly sure why it didn't work with the tags in the web.config file. My guess there is a conflict with the GAC and the BIN folder.
从 web.config 和它的工作。不完全确定为什么它不能与 web.config 文件中的标签一起使用。我猜 GAC 和 BIN 文件夹存在冲突。
Here is my web.config file:
这是我的 web.config 文件:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<httpHandlers>
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</httpHandlers>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
</handlers>
</system.webServer>
</configuration>
回答by atik sarker
I was getting this error after deploying on IIS Server PC.
在 IIS 服务器 PC 上部署后,我收到此错误。
- First Install Microsoft SQL Server 2014 Feature Pack
- 首先安装 Microsoft SQL Server 2014 功能包
https://www.microsoft.com/en-us/download/details.aspx?id=42295enter link description here
https://www.microsoft.com/en-us/download/details.aspx?id=42295在此处输入链接描述
- Install Microsoft Report Viewer 2015 Runtime redistributable package
- 安装 Microsoft Report Viewer 2015 Runtime 可再发行组件包
https://www.microsoft.com/en-us/download/details.aspx?id=45496
https://www.microsoft.com/en-us/download/details.aspx?id=45496
It may require restart your computer.
它可能需要重新启动您的计算机。
回答by Ehasanul Hoque
In My cases, After installing Sql server data tools by Visual Studio 2015 installer, problem has been resolved
在我的情况下,通过 Visual Studio 2015 安装程序安装 Sql 服务器数据工具后,问题已解决
回答by smit savalia
First install SQLSysClrTypes for Ms SQL 2014 and secondly install ReportViewer for ms sql 2014
首先为 Ms SQL 2014 安装 SQLSysClrTypes,然后为 ms sql 2014 安装 ReportViewer
Restart your application or project, in my case its resolved.
重新启动您的应用程序或项目,就我而言,它已解决。
回答by Khai Vu
Issue
问题
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms / Winforms, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
解析器错误消息:无法加载文件或程序集“Microsoft.ReportViewer.WebForms/Winforms,版本=12.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91”或其依赖项之一。该系统找不到指定的文件。
Cause
原因
Microsoft ReportViewer runtime and SQL CLR Types for SQL Server 2014 is required to run and is missing from the server hosting Internet Information Services (IIS) or your application.
需要 Microsoft ReportViewer 运行时和 SQL Server 2014 的 SQL CLR 类型才能运行,但托管 Internet 信息服务 (IIS) 或您的应用程序的服务器中缺少该类型。
Resolution
解析度
Install the following packages on the IIS server and then restart the system:
在 IIS 服务器上安装以下软件包,然后重新启动系统:
Download Microsoft ReportViewer runtime
Download Microsoft SQL CLR types for SQL Server 2014
下载适用于 SQL Server 2014 的 Microsoft SQL CLR 类型
Once restarted connect to Web service / Your app again and verify that the error has been resolved.
重新启动后,再次连接到 Web 服务/您的应用程序并验证错误是否已解决。
Or you cant follow this linkto read more.
或者您无法按照此链接阅读更多内容。

