on 11-15-2011 9:22 PM
I have created an application using the .NET 4.0 runtime using Visual Studio 2010. The development PC is Windows 7 Ultimate 32bit. I need to use .NET 4.0 because of features required for XML. When I attempt to deploy the application on a PC whose OS is Windows 7 64 Enterprise, the required .NET 4 runtime is installed and the Crsytal reporte runtime is also installed. The install fails with the error: Unable to install or run the application. The application requires that the assembly CrystalDecisions.ReportAppServer.CommonObjectModel Version 13.0.2000.0 be installed in the Global Assembly Cache (GAC) first. It appears the latest version for download is 13.0.1... This issue appears to be common, but yet I can find no fix for it. Help, Please.
Hi,
Install the [Crystal Reports for Visual Studio 2010 SP1 .Redistributable 64 bit|http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_64bit_13_0_1.zip]|] on the server.
Compile the application targetting to the 64 bit platform and then deploy it on the server.
See if it still reproduces the issue.
Thanks,
Bhushan.
Edited by: Bhushan Hyalij on Nov 16, 2011 3:46 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have targetted the x64, recompiled and the same error is reproduced. I downloaded and installed the 64bit crystal runtime and .NET 4 runtime sepeartely. The install still tries to download the crystal runtime. I targetted the x86 and was able to install on Windows 7 32bit. There are hints on the net that Crystal has serious compatibility issues with .NET 4 and Windows 64 bit, but I can see no definitive statement as to if it really is incompatible. I need to install on x64.
I think I know what the issue is. It is Windows x64. No user has permission to add to the GAC, not even administrator. This also is a big problem found all over the NET, but no answer as to how to get assemblies into the GAC under WIN 7 64. I might have to call Microsoft, but $250 for a question???
Hey Rick,
I have a click once app that I'm deploying to a 64 bit Windows 7 machine and I'm getting the same error message you got over two years ago.
The only difference now is that CR for VS 2013 has come out and I'm manually deploying the SAP Crystal Reports runtime engine for .Net Framework (64-bit) to the client machine.
Were you ever able to resolve this issue?
Thanks,
David
It seems that every issue with Crystal Reports is solved by ensuring the Startup section of the application.exe.config file looks like this:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup>
I think the important statement is useLegacyV2RuntimeActivationPolicy="true"
Following blogs could be helpful
How to deploy a Crystal Reports .Net Web application on a 64 bit operating system?
Crystal Reports for Visual Studio 2010 - Deployment
If you are using Win App things would remain much similar to web app expect for app pool stuff..
Try compiling to use x86.
Thanks,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok I have got the assemblies in the GAC.Copied cacls and gautil from the dev environment and forced permissions and mnaual install in GAC. App runs AOK until I goto creat a crystal report, then crashes 1st line of error is System.TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.ReportAppServer.CommLayer, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
The versions I am seeing on this site to download are 13.0.1., what is this 13.0.2000. Where do I download this from??
13.0.2000.0 is the assembly version. You'd see this in the GAC.
13.0.1.220 is the file version you see if you find the file and look at properties. The file is here:
C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet
Good luck,
- Ludek
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.