SAP Knowledge Base Article - Public

1611027 - Error: Custom tool error: "Code generator 'ReportCodeGenerator' failed


  • 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)"


  • There is a c:\Temp directory on the hard drive


  • 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


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


SAP Crystal Reports, developer version for Microsoft Visual Studio