异常详细信息: System.Runtime.InteropServices.COMException: 没有注册类别 - SDAVUtil(跪求啊!)
源代码:
reportDocument = new ReportDocument();
reportDocument.Load(Server.MapPath("CG_CGDD_Report.rpt"));
reportDocument.SetDataSource(ds);
ReportViewer.ReportSource = reportDocument;
错误提示:
[COMException (0x80040154): 没有注册类别 - SDAVUtil]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +271
[CrystalReportsException: 加载报表失败。]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +334
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +894
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
Maticsoft.Web.Report.CaiGou.CG_CGDD_Report1.ConfigureCrystalReports() in D:\Printsoftwareweb\Web\Admin\Report\CaiGou\CG_CGDD\CG_CGDD_Report.aspx.cs:60
Maticsoft.Web.Report.CaiGou.CG_CGDD_Report1.Page_Init(Object sender, EventArgs e) in D:\Printsoftwareweb\Web\Admin\Report\CaiGou\CG_CGDD\CG_CGDD_Report.aspx.cs:72
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Page.OnInit(EventArgs e) +12
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
在编译状态下都正常,但是一在IIS中一运行就不行了,请问是什么问题?
reportDocument = new ReportDocument();
reportDocument.Load(Server.MapPath("CG_CGDD_Report.rpt"));
reportDocument.SetDataSource(ds);
ReportViewer.ReportSource = reportDocument;
错误提示:
[COMException (0x80040154): 没有注册类别 - SDAVUtil]
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +271
[CrystalReportsException: 加载报表失败。]
CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +334
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +894
CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
Maticsoft.Web.Report.CaiGou.CG_CGDD_Report1.ConfigureCrystalReports() in D:\Printsoftwareweb\Web\Admin\Report\CaiGou\CG_CGDD\CG_CGDD_Report.aspx.cs:60
Maticsoft.Web.Report.CaiGou.CG_CGDD_Report1.Page_Init(Object sender, EventArgs e) in D:\Printsoftwareweb\Web\Admin\Report\CaiGou\CG_CGDD\CG_CGDD_Report.aspx.cs:72
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnInit(EventArgs e) +99
System.Web.UI.Page.OnInit(EventArgs e) +12
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
在编译状态下都正常,但是一在IIS中一运行就不行了,请问是什么问题?
...全文
相关推荐
System.Runtime.InteropServices.COMException的解决方法
"解决System.Runtime.InteropServices.COMException的方法"在软件开发过程中,尤其是在跨平台或者与非托管代码交互时,可能会遇到`System.Runtime
COMException(解决方案).md
此外,使用编程语言如C#处理COMException异常的代码示例如下:```csharpusing System;using System.Runtime.InteropServices;class
C#开发Excel文件操作异常处理:HRESULT 0X80010105错误解决方案与COM加载项配置
内容概要:本文介绍了在使用C#操作Excel文件时可能遇到的错误“System.Runtime.InteropServices.COMException: 服务器出现意外情况(异常来自 HRESULT
Microsoft script control 64位.rar
C#或者VB.Net 如果要调用JS,必不可少要用到Microsoft script control组件, 用过的人都知道有多方便, 但是官方版本只支持32位系统的, 64位系统使用会报错Syste
C#任务计划程序操作指南[项目代码]
整个项目代码结构清晰,包含完整的命名空间引用(using TaskScheduler; using System.Runtime.InteropServices;),异常处理机制覆盖COMException


.NET Framework
