on 11-13-2012 12:08 AM
Development machine is Windows 7 32-bit with Visual Studio 2008 and Crystal Reports 2008 SP2.
Server is Windows 2008 64-bit Server SP1.
I am trying to run a simple ASP.NET app on the server that uses the CrystalDecisions.Web.CrystalReportViewer (version 12.0.1100.0), and it's not working. I get the following error:
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) that contains the version of the Crystal Reports runtime (x86, x64, or Itanium) that is required. Please go to http://www.businessobjects.com/support for more information.
I have the cr2008sp2_redistinstall installed on the server.
I read a suggestion somewhere to try compiling the dll for the application so it is targeting only a 32-bit CPU. When I tried that and replaced the app's dll on the server, the error message changed to:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Could not load file or assembly 'CrystalReportWVTest' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CrystalReportWVTest' could not be loaded.
|
Any suggestions, please?
Hello Nathan
I moved your post to the SAP Crystal Reports, version for Visual Studiodiscussion space.
Make sure your app pool on the WIN 2008 Server is set to 32 bit.
What is the version of the assembly CrystalDecisions.CrystalReports.Engine.dll referenced in your project?
- Ludek
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And the runtime you deploy is from here:
http://scn.sap.com/docs/DOC-27917
??
If so, I'd like you to use Process Monitor, see what is happening when the process is trying to load the CR runtime.
- Ludek
Yes I installed the SP2 runtime from there, as I am running CR SP2 on my development computer. Before that, though, I also installed the actual Crystal Reports SP3 on the server.
I also installed the CRforVS_redist_install_32bit_13_0_3 and the CRforVS_redist_install_64bit_13_0. Would those be causing conflicts?
I installed Process Explorer, but I'm not sure what to watch for. I do notice that when I try to run the asp.net page, a process called w3wp.exe shows up green under svchost.exe. Do you need information about that or is there something else I should be looking for?
Umm, a bit of confusion here. In your original post you say:
Visual Studio 2008 and Crystal Reports 2008 SP2.
Server is Windows 2008 64-bit Server SP1.
But in the last post you say:
Yes I installed the SP2 runtime from there, as I am running CR SP2 on my development computer. Before that, though, I also installed the actual Crystal Reports SP3 on the server.
I also installed the CRforVS_redist_install_32bit_13_0_3 and the CRforVS_redist_install_64bit_13_0. Would those be causing conflicts?
CR 2008 uses runtime dlls of version 12.x. CRforVS_redist_install_32bit_13_0_3 is a runtime for Crystal reports for Visual Studio 2010 (CRVS2010), versioned as 13.x.
So. If the CR references in your project are version 12.x, then you need to deploy version 12.x runtime. That you will find here:
http://scn.sap.com/docs/DOC-27917
The runtime here:
http://scn.sap.com/docs/DOC-7824
is for CRVS2010 and if your references are 12.x, you do not want these files.
- Ludek
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.