cancel
Showing results for 
Search instead for 
Did you mean: 

Error deploying the application with Crystal Report

Former Member
0 Kudos

Hello,

I'm using Visual Studio 2010 and I installed the required version of crystal report for it. I'm developing a windows Application with C# and Crystal Reports. The program runs correctly in the visual studio but when I tried to deploy it by adding the setup it gives me the following warnings:

- Unable to find dependency 'MICROSOFT.VISUALSTUDIO' (Signature='B03F5F7F11D50A3A' Version='1.0.5000.0') of assembly 'crdb_adoplus.dll'

+- The 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' item selected requires 'Microsoft.Net.Framework.2.0'. Select the missing prerequisite in the Prerequisites Dialog Box or create a bootstrapper package for the missing prerequisite. +

- No 'HomeSite' attribute has been provided for '.NET Framework 2.0 SP2', so the package will be published to the same location as the bootstrapper.

I tried to ignore the warnings and deploy it but when I try to open the crystal report and in the program it gives me an error message then an empty report.

I also tried in the Prerequisites to choose the option : Download prerequisites from the same location as my application. but when I do that I receive the following errors:

- The install location for prerequisites has not been set to 'component vendor's web site' and the file 'MDAC28\mdac_typ.exe' in item 'Microsoft Data Access Components 2.8' can not be located on disk. See Help for more information.

- General failure building bootstrapper.

- Unrecoverable building error.

of course In addition to the previous error.

I'm not using the click-once deployment.

Can you please help and advice me with that? I tried to search through the net for these warnings but with no luck of the solution.

Thank you,

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

See if [this|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533323335333433333332%7D.do] KB helps.

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

I already did that before but also with no luck. It didn't solve the problem.

former_member183750
Active Contributor
0 Kudos

I wonder about this part of the error;

The 'SAP Crystal Reports Runtime Engine for .NET Framework 4.0' item selected requires 'Microsoft.Net.Framework.2.0'.

Is framework 2.0 installed?

- Ludek

Former Member
0 Kudos

No, .Net Framework 2 is not installed. I'm using windows 7 so I installed .Net framework 4. I tried to Install .Net 2 but it doesn't install because of windows 7. I also tried to add it in the prerequisites but again with no luck in solving the issue.

If I try to deploy the App and install it. When I try to open the crystal report the app crushes and gives me the following error:

Report load failed.

exceptions:

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 DataViewer2.Form5.crystalReportViewer1_Load(Object sender, EventArgs e)

at System.Windows.Forms.UserControl.OnLoad(EventArgs e)

at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnCreateControl()

at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

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)

Edited by: starrysky88 on Sep 13, 2011 11:35 AM

former_member183750
Active Contributor
0 Kudos

.Net 2 but it doesn't install because of windows 7.

I believe to install framework 2.0 on WIN 7 you need to do go to Programs and Features in Control Panel. Click start, and type: 'turn windows features on and off' You will see a checkbox for .Net frameworks. You can install both types...

If the above does not help, you probably want to talk to Microsoft about that. The problem is that the crdb_adoplus.dll that you are using to when a dataset is passed to the report will only work with framework 2.0.

- Ludek

Former Member
0 Kudos

Hello,

Thank you so much for your help.

I finally solved the problem. It wasn't from the .Net 2. It was just a problem with loading the report from the correct path.

Answers (0)