一、 如果你的程度用到水晶报表,那就需要为服务器部署所需要的环境或程序集,否则部署后程序会出现以下错误: 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 on Source Error: Line 85: </pages> Line 86: <httpHandlers> Line 87: <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/> Line 88: </httpHandlers> Line 89: <sessionState timeout="360"></sessionState> Source File: c:"inetpub"wwwroot"yuexiusf"web.config Line: 87 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.
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].
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42 解决方法: 1、在你的开发环境中找到Visual Studio安装目录下的"SDK"v2.0"BootStrapper"Packages"CrystalReports,将安装文件CRRedist2005_x86.msi,复制到服务器中并安装。 2、如果程序还不能运行,需要将水晶报表的五个dll文件复制到你的网站下的bin目录,其五大将的名称如下: CrystalDecisions.CrystalReports.Engine.dll CrystalDecisions.ReportSource.dll CrystalDecisions.Shared.dll CrystalDecisions.Web.dll CrystalDecisions.Windows.Forms.dll 那么他们身在何处呢?答:“在你的开发环境中C:"Program Files"Common Files"Business Objects"2.7"Managed"目录下”
二 另外会出现一个其他的问题 就是发布了以后发现web的工具栏的图标不显示。同时点击发现出现提示性的js错误。经过分析认为是水晶报表的资源没有安装。 打开C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp.NETClientFiles 找到文件夹CrystalReportWebFormViewer3 然后在桌面新建aspnet_client然后再里面新建system_web然后在里面新建2_0_50727。然后把CrystalReportWebFormViewer3的所有东西copy到2_0_50727里面。这样就有完整的路径 aspnet_client\system_web\2_0_50727\CrystalReportWebFormViewer3 然后复制所有的asp.net_client整个文件夹到您的网站发布的根目录里面 运行一下,世界就清凉了。哇咔咔 |