Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0 异常处理

在本机开发asp.net .rdlc报表后,部署到本地没有问题。

当把网站发布后部署在IIS上,新电脑上(只安装了.net framwork4.5),提示如下错误:

“Could not load file or assembly Microsoft.ReportViewer.WebForms, Version=11.0.0.0……

或者

”Could not load file or assembly ‘Microsoft.ReportViewer.Common, Version=11.0.0.0……

针对如上问题,需要安装如下组件:

ReportViewer.msi 

在安装ReportViewer.msi时可能提示安装:

SQLSysClrTypes.msi

安装如上两组件后,再次运行站点,还可能报错:

“ASP.NET ReportViewer Native compiler return value: ‘[BC2001] file’ error”

不用担心,按一下步骤处理:

1、选择此站点的-》应用程序池,右击-》点击"设置应用程序池默认设置",如下图:

2、选择 -》“进程模型”->"标识"-》“自定义账户”,设置为管理员用户名及密码,运行下,成功。

参考资料:

http://stackoverflow.com/questions/22253607/could-not-load-file-or-assembly-microsoft-reportviewer-common-version-11-0-0-0

http://randypaulo.wordpress.com/2011/07/28/asp-net-reportviewer-native-compiler-return-value-%E2%80%98bc2001-file-error/

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0 异常处理

时间: 2024-08-08 05:37:59

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=11.0.0.0 异常处理的相关文章

Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0...

一.在Mvc 发布时出现如下错误: Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0... 出现错误的原因是 Mvc版本更新,发布版本号没有对应好. 解决方案: 1.web.config 修改版本号 2.views/web.config 和 area/views/web.config 修改升级后的版本号 Could not load file or assembly 'System.Web.Mvc, Version=

未能加载文件或程序集 Microsoft.ReportViewer.Common, Version=11.0.0.0

WinForm客户端软件开发时,使用rdlc做报表,并且使用ReportViewer呈现报表时,开发者的机器运行正常.但是部署到第三方机器上运行时报错.大致有以下几种错误: (1)未能加载文件或程序集"Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"或它的某一个依赖项.系统找不到指定的文件.文件名:"Microsoft.Repor

Could not load file or assembly Microsoft.Data.OData Version=5.2.0.0 error in Azure Cloud Worker Role using Table Storage

解决方法:利用VS2012中Tools->NuGet Package Manage-> Package Manage Console然后输入命令PM> Install-Package Microsoft.Data.OData -Version 5.5.0 然后在Apps应用里加入Microsoft.Data.OData.dll. 最后还要在app.config里加入以下信息: <runtime> <assemblyBinding xmlns="urn:sche

Unable to read the project file &#39;client.csproj&#39;. Could not load file or assembly &#39;Microsoft.Build.En

错误详细信息: Unable to read the project file 'client.csproj'. Could not load file or assembly 'Microsoft.Build.Engine, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件. 今天打开之前一个vs2005的项目,报出上面的错误,这个啥

Could not load file or assembly &#39;Microsoft.SqlServer.Management.Sdk.Sfc, Version=11.0.0.0 系统找不到指定的文件。

环境: web服务器: ip:192.168.1.32 ,安装有 Visual Studio Premium 2013 操作系统: Microsoft  Server 2008 r2+sp1 数据库服务器: ip:192.168.1.33,安装有Microsoft SQL Server 2012 操作系统: Microsoft  Server 2008 r2+sp1 操作过程: 在vs2013里利用向导SqlDataSource配置数据库连接时,点击测试连接提示成功,当点击确定时报错: ----

Could not load file or assembly &#39;Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, ...

使用oracle数据库一个多月依赖这问题一直都得不到解决,最近任务不是很忙了,所以决定把这问题解决掉.写一篇文章做记录. 以上错误主要是net程序oracle数据库使用了Microsoft Enterprise Library 5.0 类库访问oracle数据库,其具有优秀的访问不通数据库的能力.使用方法不对也同样出现错误.解决办法是下载http://www.microsoft.com/en-us/download/confirmation.aspx?id=15104最新的类库并安装,安装后到安

Could not load file or assembly &#39;Microsoft.AnalysisServices.SharePoint.Integration&#39;

In Central Administration, in System Settings, click Manage farm solutions. Click Powerpivotwebapp. Click Deploy Solution. Choose the web application for which this error is occurring. If there is more than one web application, redeploy the solution

Could not load file or assembly &#39;Microsoft.Office.Interop.Word, Version=14.0

参考地址一:点击这里 参考地址二:点击这里 解决方法: 使用office COM元件,电脑里必须要有相对应的版本,比如 Excel 14.0是对应Excel 2010 Excel 12.0是对应Excel 2007 Excel 11.0是对应Excel 2003 使用Excel COM必须要注意版本问题,并非用最高版本就能操作低版本. Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=14.0

ex:Could not load file or assembly &#39;System.Web.Helpers, Version=2.0.0.0, Culture=neutral, . 系统找不到指定的文件。

今天写的是一个小程序,采用webfrom 形式,.netframework4.0 项目中调用了System.Web.Helpers下的Json方法. 在本地测试没问题,结果搭建到服务器上,死活运行不正常. 报错: ex:Could not load file or assembly 'System.Web.Helpers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its depend