0
我有一个应用程序生成一些漂亮的基本报告。我为visual studio 2010安装了水晶报告.net 4 beta 2,并将这些DLL复制到我的网站的bin文件夹中。在本地运行时一切正常,但当我尝试在生产服务器上创建报告时,我得到以下异常。Crystal Reports .Net 4 Beta 2生产异常
Retrieving the COM class factory for component with CLSID
{C0D87D96-8D57-4274-AA18-D465E31F901E} failed due to the following error:
80040154 Class not registered (Exception from HRESULT: 0x80040154
(REGDB_E_CLASSNOTREG)).
这里是堆栈跟踪:
[COMException (0x80040154): Retrieving the COM class factory for component with CLSID
{C0D87D96-8D57-4274-AA18-D465E31F901E} failed due to the following error: 80040154
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).]
CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +141
[TypeInitializationException: The type initializer for
'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
view_report.UpdateReport(Object sender, EventArgs e) +120
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
我没有做了一大堆用水晶报表所以有可能是我丢失的东西,但我不得不手动复制从DLL文件我的GAC进入我的应用程序bin文件夹,因为我不想在生产环境中运行安装程序。当我从web.config中删除dll负载时,所有工作都在本地进行,因此我的站点将在Bin中查找任何其他dll,但我不知道为什么会出错。
任何人有任何见解?
编辑:
我也已经安装了部署运行在服务器上也看到,如果这是一个问题。