cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal XI will not run on Windows 7 (.NET 2.0 C# app)

Former Member
0 Kudos

Hi all,

I have an App developed with VS 2005 .NET 2.0 written in C# which calls a Crystal Report (developed with CR XI) for rendering.

When I deployed the App on Windows 7 Machine, any attempt to run the report is resulting with the following error:

=====================================================================================================

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.

=====================================================================================================

The application is running perfectly on windows XP Client.

the .NET 2.0 framework is installed on the WIndows 7 Machine. as well as Crystal latest runtime libraries.

CrystalReports11_5_maps.msm dated 9/16/2010

CrystalReports11_5_NET.msm dated 9/16/2010

CrystalReports11_5_NET_2005.msm dated 9/16/2010

resides in: C:\Program Files (x86)\Common Files\Merge Modules

What do I have to install on my Windows 7 PC to prevent this from happening.

Please Help

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hello Skuppi,

First, CR XI ( 11.0 ) is not supported on Windows 7. CR XI R2 ( 11.5 ) SP 6 is.

CR XI R2 version 11.5 requires Service Pack 4 and then SP6 to be installed. Then distribute SP 6 runtime.

I don't know what patch level you are on so here's the quick links to start off clean, requires and uninstall first so make sure you have your keycode:

https://smpdl.sap-ag.de/~sapidp/012002523100009114712011E/crxir2sp4_fullbuild.exe

https://smpdl.sap-ag.de/~sapidp/012002523100009114412011E/crxir2sp6_incremental.exe

Runtime:

https://smpdl.sap-ag.de/~sapidp/012002523100013451332010E/crxir2_fp64_net_mm.zip

You may want to use the MSI installer rather than the merge modules to verify all of the CR dependencies are included.

https://smpdl.sap-ag.de/~sapidp/012002523100013451312010E/crxir2_fp64_server_ins.zip

Error typically suggests either there are missing dependencies or runtime is incorrect from the deployment.

CR XI and CR XI R2 are two different versions and will not work in one app. So not sure if this is a typo or not. If you developed with CR XI ( version 11.0 ) and distributing CR XI R2 ( 11.5 ) then that would explain why the error. Download R2 and Rebuild and change references to 11.5 and rebuild your deployment package and try again.

Don

Edited by: Don Williams on Jun 17, 2011 11:09 AM

Former Member
0 Kudos

Don,

I have the same problem with a VB.net Winapp - VS2005. Our goal is to have it run on Windows 7 professional - 32 bit.

It runs fine on XP. Please clarify a few things:

You said: "requires an uninstall first so make sure you have your keycode"

Uninstall what? On client machine or developement machine?

What do you mean by "keycode"? Is it the product activation number that came with the CD when I purchased Crystal reports prof XI Windows?

Do I have to change the reference to the crystal library inside the VS 2005 project and then rebuild?

Thanks for your help.

Hans

0 Kudos

Uninstall on your DEV PC and install 11.5. and then Update the dependencies in your app to 11.5.x.x. VS should do it for you.

Rebuild and Redistribute the 11.5 runtime to your customers who use Windows 7.

Keycode is the one you have with the XI CD.

Former Member
0 Kudos

Don,

thanks so much for the quick response. One more thing. We have about ten other winapps running on XP that create crystal reports just like the one I mentioned. I still need to support them (make changes etc) .Once I uninstall the old crystal library from the dev machine, is it going to break the other applications if I try to rebuild them? What I'm saying is, do I need to have two separate development machines, once for apps to be run on XP and one for Windows 7? We have about 300 users and some will be running XP and some (new computers) on Windows 7.

I hope this all makes sence to you.

Thanks so much

Hans

0 Kudos

Hi Hans,

If you need both then you can keep them. CR 9 and above are side by side supported. Only thing then is to make sure all your CR XI R2 are used and listed in the references.

For those who do need to run on Windows 7 and above they'll have to use R2 SP 6 runtime to be supported by SAP.

Don

Former Member
0 Kudos

Don,

I followed your steps as listed on your post but when I tested it on a client machine the report did not work. I believe that it did not work because I did not get a new set of dll files. So my CR XI R2 are not used and listed in the references.

I downloaded and ran these two files

https://smpdl.sap-ag.de/~sapidp/012002523100009114712011E/crxir2sp4_fullbuild.exe

https://smpdl.sap-ag.de/~sapidp/012002523100009114412011E/crxir2sp6_incremental.exe

My VS 2005 projects references the files CrystalDecisions.Shared.dll and CrystalDecisions.CrystalReports.Engine.dll which are located in folder C:\Program Files\Business Objects\common\3.5\managed\dotnet2. After running the two exeu2019s listed above, I was expecting to have a new set of dlls in order to change the reference inside the VS project. It is still pointing to the old dllu2019s. What am I missing? Any ideas? Do I have to list new (different) libraries included in my CR XI R2? If so, where are they?

Thanks again for your help.

Hans

0 Kudos

Hi Hans,

The version of the dll's never change in the project, they will be 11.5.1100 or 11.5.2000. So it appears your app still used the R2 dll's.

You need to distribute the R2 runtime now also:

https://smpdl.sap-ag.de/~sapidp/012002523100013451332010E/crxir2_fp64_net_mm.zip

Thanks

Don

Former Member
0 Kudos

Don,

I did all the steps you mentioned. When I get to the last one from your instructions

"You may want to use the MSI installer rather than the merge modules to verify all of the CR dependencies are included.

https://smpdl.sap-ag.de/~sapidp/012002523100013451312010E/crxir2_fp64_server_ins.zip";

and try to run it on the Windows 7 client machine, it asked me for a code. What code do I need? Do I need to purchase a licence for this type of deployment?

The only licence I currently have is the Crystal Reports Professional XI Windows Developement. When I use it, it says that the code is invalid.

Please help. I'm getting desperate at this point.

Thanks a bunch

Hans

0 Kudos

Hi Hans,

It's not really clear but it would appear you are using the free upgrade to R2 so you'll have to call Sales to get a keycode for CR XI R2.

Be sure to tell them you are upgrading to R2 and they should give you one: Call +1-866-776-6567

Thanks

Don

Former Member
0 Kudos

Don,

Thanks so much. I got it working. I received a new code from Business Objects. I also had to set the Target CPU to x86 under Advanced Compiler Options.

One more time, thanks and I really appreciate your help.

Hans

Answers (0)