Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have developed an C#4.0 windows form application with SAP's crystal report for Visual Studio2010. Application works fine in the development environment and the executable in bin directory of project also works OK. However when deploy the application through the setup and deployment project it generates the following error.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at QTS4.Reports_form.frmTestResult.displayReport()
at QTS4.Reports_form.frmTestResult.frmTestResult_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) (this is the prat of error message)


I have selected the option to download the run times from local directory,yet issue is not resolved. Surfed the internet alot and tried all the tricks i found on internet but no benefit. I am stuck now Can anyone please help
Posted
Updated 8-Sep-14 22:30pm
v2
Comments
Gihan Liyanage 9-Sep-14 4:47am    
Did you go through this link

Help[^]
Shoukat Ali Laghari 9-Sep-14 6:11am    
I have gone through this link and and tried all the option but no good news.My report code is:

ReportDocument Result1 = new ReportDocument();
Result1.Load(Application.StartupPath + "\\Reports\\Result.rpt");
Result1.SetDataSource(ds_master);
Result1.Subreports[0].SetDataSource(ds_dtl);
MessageBox.Show("Displaying report");
crystalReportViewer1.ReportSource = Result1;

The message is not displayed by installed application

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900