on 2011 Apr 15 8:54 PM
I am receiving an error on the production computers that I am installing my windows app on
System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.CRPE' threw an exception. ---> CrystalDecisions.Shared.CrystalReportsException: Could not load C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crpe32.dll.
Funny though that on a virtual machine that I am installing it on with a ghosted image of the failing computers, I am not getting this error.
Should I have the user restart their PC before loading the app
Any help would be appreaciated.
Edited by: mcontri on Apr 15, 2011 10:00 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh ok, the version is 13.0.1.220, the location that is being used for these is "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet"
and for the crpe32.dll file, there is only one on the clients computer and that is located in the same folder as above "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet"
Either this x86 runtime distribution file:
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_1.zip
Or x64 depending on which one you complied your app to use:
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip
Thanks again
Don
Yes, there are other options also, we also have Merge Modules but those require all MS dependencies to be included also by you. The MSI includes all of the dependencies. You can not simply include the CR runtime in your app for distribution, CR does not install properly that way.
You also must include the VS 2005 dependencies because of 2.0 framework dependencies we have. Typically most PC's have them install already. The MS C++ Security runtime distribution package is what we are looking for. Search MS's site for the MSI package you can include also in your distribution package.
You can include the MSI in your package along with your app, or because the MSI is a standalone installer it can be run separately.
Thank you
Don
Hi Don,
I was getting the crpe32.dll failing to load exception and I installed the runtime as you suggested. Our application is hosted by IIS . The error was resolved when our application is hosted on IIS 7.0 (Windows 7). On Windows Server 2008R2/IIS 7.5 the exception is no longer raised but the session ends and the IIS worker process crashes without any error when we attempt to show Crystal report viewer. Something tells me this could be some security or IIS configuration issue. Any ideas?
Dariusz
User | Count |
---|---|
68 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.