Hi,
I have an ASP.NET Page that renders a Crystal Report as PDF.
This has always worked.
On our System Test Web Server we now get below error when the user tries to
generate the PDF.
NOTE: This does not happen on my machine.
If I debug the code on the System Test Web Server it works fine. It gives
the error when I access the application using the URL only.
Any ideas? Good old Crystal!!
Invalid class string
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Invalid
class string
Source Error:
Line 116:
Line 117: // Load the report
Line 118: crReportDocument.Load(fileOutputPath);
Line 119:
Line 120: //declare the tables
Source File: D:\My Documents\Work\Project Karma\WAP\Project Karma\Project
Karma\bt_web_srf\home\opportunity_detail.aspx.cs Line: 118
Stack Trace:
[COMException (0x80004005): Invalid class string
]
CrystalDecisions.ReportAppServer.ClientDoc.ReportC lientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.Open(Object&
DocumentPath, Int32 Options) +87
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened() +279
[Exception: Load report failed.]
CrystalDecisions.ReportAppServer.ReportClientDocum entWrapper.EnsureDocumentIsOpened() +341
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String
filename, OpenReportMethod openMethod, Int16 parentJob) +870
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.Load(String
filename) +73
bt_web_srf.home.opportunity_detail.GenerateCustome rOutputReport() in
D:\My Documents\Work\Project Karma\WAP\Project Karma\Project
Karma\bt_web_srf\home\opportunity_detail.aspx.cs:1 18
bt_web_srf.home.opportunity_detail.Page_Load(Objec t sender, EventArgs e)
in D:\My Documents\Work\Project Karma\WAP\Project Karma\Project
Karma\bt_web_srf\home\opportunity_detail.aspx.cs:7 6
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o,
Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender,
EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061