带报表的web项目在没有vs的机器下运行报错
Server Error in '/' Application.
--------------------------------------------
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=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 系统找不到指定的文件。
Source Error:
Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="GrvReport.aspx.cs" Inherits="report_GrvReport" %>
Line 2:
Line 3: <%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Line 4: Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
Line 5:
Source File: /report/GrvReport.aspx Line: 3
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
------解决方案--------------------
干,哈哈哈哈
------解决方案--------------------
将下面的目录下的内容copy到服务器上,并运行ReportViewer.exe进行安装。
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\ReportViewer\
或者
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\ReportViewer\
------解决方案--------------------
结贴吧
------解决方案-------------------- 服务器配置:
安装 .net framework 框架
报表视图安装包
报表程序安装包
------解决方案--------------------俺是来看楼主头像的