cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Report errors when installing visual studio 2010 app

Former Member
0 Kudos

I'm trying to install a Visual Studio 2010 application on two client's machines and I get a different error on each one. Both errors point to Crystal Reports.

I have a feeling that I'm supposed to install something on the client's machines but I'm not sure what.

The first client's error says that CrystalDecisions.Windows.Form Version 13.0.2000.0 cannot be loaded.

The second client's error says that FlashControlV71. Version 1.0.3187.32366 needs to be installed in the GAC.

What am I supposed to install on the client's machines? Or if that's not the problem, what is causing the errors?

This is my first visual studio app so I'm a complete newbie.

Thanks for any help or advice.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

You must install the CR runtime.

MSM http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_mergemodules_13_0_1.zip

MSI 32 bit http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip

MSI 64 bit http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip

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

Thanks for your reply. I installed the runtime (x64) and am now getting a new error on the first client's machine. I think it's telling me that I installed the wrong version of the runtime. The client is running x64t Win 7 so I chose the x64 runtime to install.

System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: An error has occurred while attempting to load the Crystal Reports runtime. Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required. Please go to http://www.businessobjects.com/support for more information.

at CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime()

at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()

--- End of inner exception stack trace ---

at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()

at IM_CMETracking.ReportViewer.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)

The second client is running XP. The error I'm getting on their machine is this:

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.

Thank you for your help.

Former Member
0 Kudos

Also, I downloaded the merge modules yesterday and they installed in my downloads folder. I assume I need to move them somewhere, but where?

Thanks.

former_member183750
Active Contributor
0 Kudos

Merge modules a re used in a deployment application. E.g.; in VS you need to create a deployment project. MSI, you can just double click on it and voila...

Re. the error, make sure you used the correct MSI (32 or 64 bit).

What is the version of the CR assemblies used in your project?

- Ludek

Former Member
0 Kudos

The CR assemblies version are all 13.0.2000.0. Copy local set to false on all.

I found a deployment tutorial on msdn yesterday and created a solution using their tutorial. I assume I can modify that to run the correct msi. [http://msdn.microsoft.com/en-us/library/aw2dz878.aspx]

former_member188030
Active Contributor
0 Kudos

Hi,

Take a look at the 'Deployment' section in the [Crystal Reports .Net SDK Developer Guide|http://help.sap.com/businessobject/product_guides/sapCRVS2010/en/crnet_dg_2010_en.zip].

Hope it helps,

Thanks,

Bhushan.

Former Member
0 Kudos

Thanks for your reply. I read thru what you suggested and I think I have everything in place. I created a deployment project and installed it on my machine. It created setup.exe and Merge Module Installer.msi.

I assume I have to copy both the exe and msi to my clients machine. Do I run both Setup and the msi or just the setup?

I installed both on my virtual machine, ran setup only, but get an error message when trying to open the report:

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.

former_member183750
Active Contributor
0 Kudos

The error indicates that the report is not being found where your code says it is. Double check that the report exists in the directory specified in your .Load.

Ludek

Former Member
0 Kudos

The .rpt is where it should be.

Should it matter that I'm using my virtual machine? The app installed OK and I can use it, I just can't run a report.

former_member183750
Active Contributor
0 Kudos

Virtual mchine should not matter. Make sure the process has read \ write permissions on the temp folder.

Download [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] and see what it tells you about the report load.

- Ludek

Former Member
0 Kudos

Very odd. Process monitor tells me that accessing the report was a success when using my virtual machine. But I still get the error message.

former_member183750
Active Contributor
0 Kudos

Make sure the process has read \ write permissions on the temp folder.

- Ludek

Former Member
0 Kudos

(Well, it helps tremendously running process monitor on my virtual machine instead of my real machine!)

OK, I found a number of dll's that process monitor says "Path not found". Among them are:

CrystalDecisions.CrystalReports.Engine.dll

log4net.dll

CrystalDecisions.ReportSource.dll

CrystalDecisions.Shared.dll

So, if it can't find them on my virtual machine but can on my real, then obviously they're missing from my virtual and need to be installed from somewhere.

Could I just find them on my real and install them on my virtual, or is that too simple?

Thanks for your help.

former_member183750
Active Contributor
0 Kudos

Unfortunately, you cnanot copy these over to the virtual machine. But you should be able to run the MSI \ your setup project on the virtual machine and that will install the runtime there.

- Ludek

Former Member
0 Kudos

I did that once already but went ahead and reinstalled the CR runtime and msi again. However the error persists. It must be something with the virtual machine. I'm going to have to find another real machine to work with and quit trying to get it to work on the virtual.

Thanks for your help.

Answers (1)

Answers (1)

Former Member
0 Kudos

Does not work on my virtual machine but does on a separate 32-bit machine.