开发环境:vs2005+水晶报表10。
在开发环境中运行一切正常,但是部署到服务器上后就会出现以下错误:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. 系统找不到指定的文件。
Source Error:
Source File: F:xumu_webyingxianweb.config Line: 85
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
提示的错误:
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. 系统找不到指定的文件。
Source Error:
|
Source File: F:xumu_webyingxianweb.config Line: 85
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.
|
错误是提示配置文件web.config中关于水晶报表注册的语句:
Line 83: Line 84: <httpHandlers> Line 85: <add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>Line 86: <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/> Line 87: </httpHandlers></system.web> |
提示的错误:
|
分析可能是找不到水晶报表的dll文件
服务器上装了水晶报表10,但是它可能只是开发环境,并不包含.net运行水晶报表所需要的dll文件
经过分析与测试,将本地这个目录:C:Program FilesMicrosoft Visual Studio 8SDKv2.0BootStrapperPackagesCrystalReports下的CRRedist2005_x86.msi文件装到服务器上,就OK了。




Crystal Reports





此内容无附件