[原创] 部署含有ReportView的控件的ASPX页面时出现错误
部署含有ReportView的控件的ASPX页面时有错误,怎么也搞不好
把 Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer下面的ReportViewer.exe 重新安装也不行,
无奈何,用最土的办法,
把上面的DLL找到放在BIN目录下面。 其实,我在GAC中看到了上面三个程序集,版本也正确,但是就是不能运行,重启服务器也没有用。
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Source Error:
Line 1: <%@ Page Language="C#" MasterPageFile="~/IPR/Default.master" AutoEventWireup="true" CodeFile="RequestReport.aspx.cs" Inherits="IPR_RequestReport" Title="Request Report" %>
Line 2:
Line 3: <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Line 4: Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
Line 5: <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
OK. 还是解决了。
ReportView ,可以直接放到BIN目录下。
后来,升级到 vs2008, .net 3.5 时,有遇到新问题。
幸好有这位仁兄,真是很感激他。
http://www.cnblogs.com/sicily/archive/2009/02/03/1233922.html
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
下载这个文件。
/Files/lshvs2005/Microsoft.ReportViewer.ProcessingObjectModel.rar