日期:2014-05-17  浏览次数:20519 次

“CrystalDecisions.CrystalReports.Engine.ReportDocument”的类型初始值设定项引发异常
这个问题搞的我很郁闷,做好的水晶报表在其他机子上可以用,在我本机运行不行了,开发的时候都是可以的!   详细错误提示如下:

检索   COM   类工厂中   CLSID   为   {11BD5260-15B6-412D-80DB-12BB60B8FE50}   的组件时失败,原因是出现以下错误:   8007007e。  
说明:   执行当前   Web   请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。  

异常详细信息:   System.IO.FileNotFoundException:   检索   COM   类工厂中   CLSID   为   {11BD5260-15B6-412D-80DB-12BB60B8FE50}   的组件时失败,原因是出现以下错误:   8007007e。

源错误:  


行   36:                           DataSet   ds   =   HensomeWeb.DB.DbHelperSQL.Query(sql);
行   37:  
行   38:                           this.CrystalReportSource1.ReportDocument.Load(Server.MapPath( "cry/CrystalReportMonth.rpt "));
行   39:                           CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables[ "ds "]);
行   40:                           CrystalReportSource1.DataBind();
 

源文件:   e:\hensome\网站文件\web_aspNet\cySoft2\cryMonth.aspx.cs         行:   38  

堆栈跟踪:  


[FileNotFoundException:   检索   COM   类工厂中   CLSID   为   {11BD5260-15B6-412D-80DB-12BB60B8FE50}   的组件时失败,原因是出现以下错误:   8007007e。]
      CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()   +182

[TypeInitializationException:   “CrystalDecisions.CrystalReports.Engine.ReportDocument”的类型初始值设定项引发异常。]
      CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()   +0
      CrystalDecisions.ReportSource.CachedReport.get_ReportDocument()   +36
      CrystalDecisions.ReportSource.CachedReport.CreateReport()   +4
      CrystalDecisions.ReportSource.CachedObjectReportSource.GetReport(RequestContext   context,   Boolean   bAddToCacheWhenCreated)   +340
      CrystalDecisions.ReportSource.CachedObjectReportSource.InternalGetReport(RequestContext   context,   Boolean   bAddToCacheWhenCreated)   +13
      CrystalDecisions.Web.CrystalReportSource.get_ReportDocument()   +176
      cryMonth.getCrystal_Report(String   dt)   in   e:\hensome\网站文件\web_aspNet\cySoft2\cryMonth.aspx.cs:38
      cryMonth.Page_Load(Object   sender,   EventArgs   e)   in   e:\hensome\网站文件\web_aspNet\cySoft2\cryMonth.aspx.cs:20
      System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr   fp,   Object   o,   Object   t,   EventArgs   e)   +15
      System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object   sender,   EventArgs   e)   +43
      System.Web.UI.Control.OnLoad(EventArgs   e)   +98
      System.Web.UI.Control.LoadRecursive()   +71
      System.Web.UI.Page.ProcessRequestMain(Boolean   includeStagesBeforeAsyncPoint,   Boolean   includeStagesAfterAsyncPoint)   +4310

 


--