Microsoft.ReportViewer.Common版本= 12.0.0.0 [英] Microsoft.ReportViewer.Common Version=12.0.0.0

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

问题描述

我在Windows服务应用程序中遇到以下异常:


System.IO.FileNotFoundException:无法加载文件或程序集
'Microsoft.ReportViewer.Common,Version = 12.0.0.0,Culture = neutral,
PublicKeyToken = 89845dcd8080cc91'或其依赖项之一。
系统找不到指定的文件。


我找不到版本12的下载网址,并将文件设置为 包含和必备(自动)无法解决此Windows Service应用程序中的问题,尽管它在我的WinForms应用程序中可以正常工作,并导致包括并引用了适当的文件以及所有其他必需的.DLL。



有人可以帮助我获取此Windows服务应用程序以包含文件,还是可以带我到将在GAC中安装版本12的下载链接?

解决方案

ReportViewer位的版本12被称为 Microsoft Report Viewer 2015 Runtime ,可以从以下链接下载安装: / p>

https ://www.microsoft.com/zh-cn/download/details.aspx?id = 45496



更新:



ReportViewer位还可以作为NUGET包提供: https://www.nuget.org/packages/Microsoft.ReportViewer.Runtime.Common/12.0.2402.15



安装软件包Microsoft.ReportViewer.Runtime.Common


I'm getting the following exception in my Windows Service Application:

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.

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.

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?

解决方案

Version 12 of the ReportViewer bits is referred to as Microsoft Report Viewer 2015 Runtime and can downloaded for installation from the following link:

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

Install-Package Microsoft.ReportViewer.Runtime.Common

这篇关于Microsoft.ReportViewer.Common版本= 12.0.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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