Link to home
Start Free TrialLog in
Avatar of cdakz
cdakzFlag for United States of America

asked on

How to install Crystal Reports run-time on intranet web server (IIS)

I've developed an ASP.NET ver 4.51 project that displays a Crystal Report 2008 .rpt file.

On my local development server, it works (of course). I installed the CRforVS_13_0_15.exe and then CRRuntime_64bit_13_0_15.msi which I believe installed the Visual Studio components, and then runtime needed by the localhost web server.

Now I need to deploy it to IIS 8 on a Windows Server 2012 machine on our intranet. I was hoping to just install some Crystal Reports runtimes on it. I went to http://scn.sap.com/docs/DOC-27917 and downloaded the CRRuntime_12_3_mlb, which I installed on my Deployment machine.

When I tried to view the report on the ASP.NET web project, running on the Deployment machine, I got the error:

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

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 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:
[FileNotFoundException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.]
   CrystalDecisions.Shared.SharedUtils..cctor() +0

[TypeInitializationException: The type initializer for 'CrystalDecisions.Shared.SharedUtils' threw an exception.]
   CrystalDecisions.Shared.SharedUtils.get_CurrentControl() +18
   CrystalDecisions.Shared.SharedUtils.GetEffectiveCulture() +8
   CrystalDecisions.CrystalReports.Engine.CREngineRes.GetString(String name) +11
   CrystalDecisions.CrystalReports.Engine.ReportDocument.CheckForCrystalReportsRuntime() +143
   CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +159

[TypeInitializationException: The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception.]
   CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0
   CrystalDecisions.CrystalReports.Engine.ReportClass..ctor() +14

I've searched high and low for a simple description what needs to be done to put the CR runtimes on an asp.net/IIS server, but to no avail.

Can somebody give me a simple description of what I need to do? TIA!
Avatar of Mike McCracken
Mike McCracken

You installed the runtimes for CR2008 not the .Net runtimes you need.  They should be CR v13

I think this link has the files you need
http://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports+v.+9.1+to+SAP+Crystal+Reports+2013%2C+Runtime+Distribution+and+Supported+Operating+Systems

DIrect link to the CR For VS runtimes
http://scn.sap.com/docs/DOC-7824

Note you need to match the service pack level which in your case would be SP15

mlmcc
Avatar of cdakz

ASKER

Oh, I was totally focused on the version of CR, not the ASP.NET platform. What you said makes sense now.

However, I'm still confused about  which kind of files I need. Since I'm not developing on the Deployment machine, do I still the  CR For VS runtimes? My impression is that the CR For VS runtimes could only be installed on a computer that already had Visual Studio on it (which the Deployment machine doesn't).

Along a similar vein, I'm not sure which of the various types of files listed at  http://scn.sap.com/docs/DOC-7824 I should download. The development machine is running 64-bit, so I can rule out "MSI 32 Bit" and "MSM 32 Bit", but that still leaves a choice of:

Install Executable
Fixed Issues
MSI 64 Bit
ClickOnce 32/64
ClickOnce "Homesite"
WEB XML Deployment
ASKER CERTIFIED SOLUTION
Avatar of chanderpal singh rathore
chanderpal singh rathore
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial