Skip to Content
0
Former Member
Nov 01, 2012 at 09:41 AM

Crystal Report deployment Issue

122 Views

I have a Windows application that contains crystal reports. I want to create a deployment project for my application.

I know how to create deployment project for crystal report but i need a way to add crystal report in the deployement.

Following are some details that might help you.

  1. Development machine: windows XP 32 bit,Visual Studo 2008, .Net framework 3.5,Crystal report version 10.0.3555.0
  2. target machine : Windows 7 with 32 bit

following are few ways how to do it but i don't know in detail how to do so.

  1. adding merge module in the project..(I know these but i don't have merge module file and one that i have don't work correctly)
  2. to use custome Action in Launch Action: but this does not allow Crystal report Redistribution package to be added in source file since it's file type is .msi (only allowed are .dll,.exe,.js..)
  3. to use Installer.cs class to and override install method to start .msi application but i don't know how to get current installation path.

    I have tried again with merge module with the following file in Add Merge module Section.
    CrystalReportsRedist2005_x86.msm
    Microsoft_VC80_ATL_x86.msm
    policy_8_0_Microsoft_VC80_ATL_x86.msm

    CrystalReports10_maps.msm
    CrystalReports10_NET_EmbeddedReporting.msm
    CrystalReports10_NET_RemoteReporting.msm
    CrystalReports10_NET_WebServiceReporting.msm

    Project installation works fine..but when report gets loaded it gives following error:
    the type CrystalReport.CrystalDecision.ReportDocument threw and exception






See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

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=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.

File name: 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'

at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()

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].

--- End of inner exception stack trace ---

at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()

at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()

at KYRPlus.crpKyrReceipt..ctor()

at KYRPlus.frmKyrReceipt..ctor()

at AadhaarKyrPlus.frmPostEnrollment.btnSaveDetail_Click(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnClick(EventArgs e)

at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ButtonBase.WndProc(Message& m)

at System.Windows.Forms.Button.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)