cancel
Showing results for 
Search instead for 
Did you mean: 

crystal report deployment

Former Member
0 Kudos

Hello guys,

I've c# app with crystal report and I did the deployment part, then I start the program and use crystal report buttons in app it gives me this message:

System .typeinitializationException: The type initialize for
'CrystalDecisions.CrystalReportDocument'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

Also ,I followed the website for the deployment

http://www.fryan0911.com/2010/07/how-to-create-setup-and-deployment.html

What do you think the problem?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hello Ahmed

My guess would be that your app is referencing CR assemblies of version 13.x (from Crystal Reports for Visual studio 2010 (CRVS2010)), but you deployed CR runtime of a lower version. See this document for links to correct runtimes for CRVS2010.

- Ludek

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Share Your Knowledge in SCN Topic Spaces

Former Member
0 Kudos

I followed many tutorials about deployment crystal report ,but non of them really helped.

Do you have a way to deploy it?

former_member188030
Active Contributor
0 Kudos

Try these simple steps... ( I am assuming this is a windows application)

- On The development machine se the target platform of the application specific to X86 or X64. Dont keep it ANYCPU.

- On the client machine install CR for VS MSI. If the app targets X86 platform install CR for VS 2010 32 bit MSI.

- If the app targets X64 platform install CR for VS 2010 64 bit MSI.

For the web app the above procedure stays the same, just for 32 bit app, make sure that the app pool property 'Enable 32 applications' is set to true.

Runtimes (MSI) can be downloaded at belo location.

http://scn.sap.com/docs/DOC-7824

- Bhushan

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Getting started and moving ahead with Crystal Reports .NET applications.

Former Member
0 Kudos

In visual studio ,how to do the deployment .Do you have to steps to follow in VS to deploy it?

former_member188030
Active Contributor
0 Kudos

See 'Deployment' section in CR.NET SDK Developer guide.

Search the forum using top right corner search box for more info on deloyment.

- Bhushan

Follow us on Twitter

Got Enhancement ideas? Try the SAP Idea Place

Getting started and moving ahead with Crystal Reports .NET applications.

Former Member
0 Kudos

In this guide ,it talks about merge module . In my PC there're some files missing

policy_8_0_Microsoft_VC80_ATL_x86.msm

Microsoft_VC80_ATL_x86.msm

Where can I download them?

Former Member
0 Kudos

Well, in the website it talks about CRRuntime_13_x.msm , but when I downloaded SAP Crystal Reports, version for Visual Studio 2010 - Merge Modules .It doesn't exist. Also, I installed this package

Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package ATL Security Update

,but still, I didn't find these files

Microsoft_VC80_CRT_x86.msm,

Microsoft_VC80_MFC_x86.msm, Microsoft_VC80_ATL_x86.msm

Microsoft_VC80_OpenMP_x86.msm

former_member183750
Active Contributor
0 Kudos

Runtime downloads for CRVS2010 are documented here:

http://scn.sap.com/docs/DOC-7824

- Ludek

Former Member
0 Kudos

I really got confused in the guide pic CRRuntime_13_0_tr.msm  ,and when they explain it they say CRRuntime_13_0_x.msm. So, which one they meant?

former_member183750
Active Contributor
0 Kudos

The x is just to denote what Support Pack / service Pack it is.

- Ludek

Former Member
0 Kudos

OK, but what about these files:

Microsoft_VC80_CRT_x86.msm,

Microsoft_VC80_MFC_x86.msm, Microsoft_VC80_ATL_x86.msm

Microsoft_VC80_OpenMP_x86.msm

former_member183750
Active Contributor
0 Kudos

Ahmed, if memory servers right, this is all documented in the wikis I added to this thread on Dec. 12. Those are dependencies that you may need, or not. Depends what's on the computer already. The MSI has all of these dependencies in it, the msm does not.

- Ludek

Former Member
0 Kudos

After ,I followed the guide ,I did the deployment and it gave me this error:

System .typeinitializationException: The type initialize for
'CrystalDecisions.CrystalReportDocument'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 at CrystalDecisions.CrystalReports.Engine.ReportDocument.cctor()
End of inner exception stack trace
at CrystalDecisions.CrystalReport.Engine.ReportDocument,ctor()
at CrystalDecisions.CrystalReport.Engine.ReportClass.ctor()

Former Member
0 Kudos

Could it be because of my app.config

<?xml version="1.0"?>

<configuration>

<configSections>

</configSections>

<connectionStrings>

    <add name="supermarket.Properties.Settings.marketConnectionString"

        connectionString="Data Source=.\sqlexpress;Initial Catalog=market;Integrated Security=True"

        providerName="System.Data.SqlClient" />

</connectionStrings>

<startup useLegacyV2RuntimeActivationPolicy="true">

<supportedRuntime version="v4.0"/>

</startup>

</configuration>

former_member183750
Active Contributor
0 Kudos

What are all the CR / RAS / Ent  assemblies referenced in your project?

- Ludek

Former Member
0 Kudos

I used

CrystalReportRedist2005_x86.msm

CRRuntime_13_x.msm

CrystalDecisions.CrystalReports.Engine

CrystalDecisions.ReportSource,CrystalDecisions.Shared

CrystalDecisions.Windows.Forms

former_member183750
Active Contributor
0 Kudos

Not an answer to the question I posed last::

What are all the CR / RAS / Ent  assemblies referenced in your project?

Why is CrystalReportRedist2005_x86.msm in the picture at all?

- Ludek

Former Member
0 Kudos

What do you mean by CR / RAS / Ent  assemblies references. Because it's not clear.

As for CrystalReportRedist2005_x86.msm, I put it cause many tutorial they include it in their merge module .

former_member183750
Active Contributor
0 Kudos

Ahmed, I suggest you create a phone case please. I usually recommend this step once we get to over two pages on these forums as in my experience, at that point we're either spinning our wheels, or not communicating. Phone case can be created here:

http://store.businessobjects.com/store/bobjamer/en_US/pd/productID.98078100

- Ludek

Former Member
0 Kudos

But ,we are so close to solve it. I just need to know what are these files CR / RAS / Ent mean?

former_member183750
Active Contributor
0 Kudos

CR = Crystal Reports

RAS = Report Application Server (more specifically the InProc RAS SDK)

Ent = Enterprise (Could be Business Objects Enterprise or SAP BusinessObjects BI Platform 4.0)

- Ludek

Former Member
0 Kudos

Can you give an example of these files. Because I'm just using these

CRRuntime_13_tr.msm

CrystalDecisions.CrystalReports.Engine

CrystalDecisions.ReportSource,CrystalDecisions.Shared

CrystalDecisions.Windows.Forms

CR_runntime.

Former Member
0 Kudos

I checked again the files are:

CRRuntime_13_tr.msm

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.ReportSource,CrystalDecisions.Shared.dll

CrystalDecisions.Windows.Forms.dll

What are the files that are messing ?

Answers (0)