Symptom
- Upgrading a VS 2008 application using Crystal Reports SDK for VS .NET
- Creating a new report in the application results in the error:
Custome tool error: "Code generator 'ReportCodeGenerator' failed.
Exception stack = CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Report engine not opened.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentOpened()
End of inner exception stack trace
at CystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentOpened()
at CystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at CystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath)
at CystalDecisions.VSDesigner.CodeGen.ReportClassWriter..ctor(String filePath, String resourceNamespace)
at CystalDecisions.VSDesigner.CodeGen.ReportCodeGenerator.GenerateCode(String inputFileName, String inputFileContent)"
Cause
- There is a c:\Temp directory on the hard drive
Resolution
- Rename the c:\Temp directory
- The issue has been identified and logged under Problem Report ID ADAPT01506594
See Also
- KB - 1540637 - Error: External component has thrown an exception. Launching the Database Expert in the embedded Crystal Reports designer in Visual Studio
Keywords
CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 crystal reports for visual studio 2010 crforvs 13 , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To