CR and VS2005

I have VS2003/CR app that I'm converting to VS2005.  On my test machine the app runs fine, but on our production server I first got error messages dealing with

CrystalDecisions.CrystalReports.Engine.dll v10.2.510.14.0
CrystalDecisions.ReportSource.dll v10.2.510.14.0
CrystalDecisions.Shared.dll v10.2.510.14.0
CrystalDecisions.Windows.Forms.dll v10.2.510.14.0

where not found, so I included them in the deployment project.  now I get the following.

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

File name: 'CrystalDecisions.ReportAppServer.CommLayer, Version=10.2.3600.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 QuoteSummary.rptQuoteSummaryDollars..ctor()
at QuoteSummary.frmQuoteSummaryDollars..ctor()
at QuoteSummary.frmDateRange.quoteSummary()
at QuoteSummary.frmDateRange.btnViewReport_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at DevExpress.XtraEditors.BaseControl.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)

************** Loaded Assemblies **************

mscorlib

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///M:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------

QuoteSummary

Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///N:/Program%20Files/M2MReports/QuoteSummary/QuoteSummary.exe
----------------------------------------

Microsoft.VisualBasic

Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.42 (RTM.050727-4200)
CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------

System

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------

System.Windows.Forms

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///M:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------

System.Drawing

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///M:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

System.Runtime.Remoting

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///M:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

DevExpress.XtraEditors3

Assembly Version: 3.2.1.0
Win32 Version: 3.2.1.0
CodeBase: file:///N:/Program%20Files/M2MReports/QuoteSummary/DevExpress.XtraEditors3.DLL
----------------------------------------

DevExpress.Utils3
Assembly Version: 3.2.1.0
Win32 Version: 3.2.1.0
CodeBase: file:///N:/Program%20Files/M2MReports/QuoteSummary/DevExpress.Utils3.DLL
----------------------------------------

System.Data

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///M:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------

System.Configuration

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///M:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------

System.Xml

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///M:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

System.Transactions

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///M:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------

System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase:
file:///M:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

CrystalDecisions.Shared
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.51014.0
CodeBase: file:///N:/Program%20Files/M2MReports/QuoteSummary/CrystalDecisions.Shared.DLL
----------------------------------------

CrystalDecisions.CrystalReports.Engine
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.51014.0
CodeBase: file:///N:/Program%20Files/M2MReports/QuoteSummary/CrystalDecisions.CrystalReports.Engine.DLL
----------------------------------------

CrystalDecisions.Windows.Forms
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.51014.0
CodeBase: file:///N:/Program%20Files/M2MReports/QuoteSummary/CrystalDecisions.Windows.Forms.DLL
----------------------------------------

CrystalDecisions.ReportSource
Assembly Version: 10.2.3600.0
Win32 Version: 10.2.51014.0
CodeBase: file:///N:/Program%20Files/M2MReports/QuoteSummary/CrystalDecisions.ReportSource.DLL
----------------------------------------

System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///M:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------

************** JIT Debugging **************

To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Help

David Davis



Answer this question

CR and VS2005

  • Nick Roberts

    Thanks for help BERWIKI.

    Actually its working fine now.

    The problem was,ODBC driver was not configured for the server so I made the proper changes on Client computer using Administrative tools.

    Thanks a lot for help.

    Kalpna


  • Peter Beresford

    Chris

    Here is a link to an article that helped alot

    http://msdn2.microsoft.com/en-us/library/ms227881.aspx

    The following is a link about using CR reports on a Citrix Server

    http://support.businessobjects.com/library/kbase/articles/c2016508.asp

    HTH

    David Davis


  • satishdayal

    Does no one know the answer to this question I am having the same issue.

  • Soloman

    http://www.businessobjects.com/products/reporting/crystalreports/xi_release_2.asp

    The link above helped me, I recently installed Crystal XI, installed the Service packs and hotfixes but still couldnt get my code to run. This should help if you are running Visual Studio 2005.

  • FBuchan

    Hi, I am facin the same error. Please guide on this
  • GeordiePaul2004

    HI..

    go to www.bussinesobjects.com

    and download the correct merge module, cr_net_2005_mergemodules_mlb_x86.zip: For visual Stdio 2005
    cr9mergemodules.zip for Crystal 9



  • Mohammed Habeeb

    Hi,

    Merge module didnt help me.

    Could you please tell me the solution for cr in windows application on client computer in not working.

    Thanks,

    Kalpna


  • CR and VS2005