Link to home
Start Free TrialLog in
Avatar of Edward Stevens
Edward StevensFlag for United States of America

asked on

Visual Basic .Net 2003 and Crystal Reports Distribution

I have written a VB .Net application which contains 5 Crystal Reports.  I have included the merge modules in the setup project.  However, after the application is installed on the client's PC, all functionality of the application works except for the Crystal Reports components.

The application uses Windows forms.  When I attempt to display a report into the report viewer on the Windows form, I get the following error in a dialogue.  Any suggestions are greatly appreciated.  Thanks

Ed

---

An unhandled exception has occurred in your application.  If you click Continue, the application will ignore this error and attempt to continue.  If you click Quit, the aplpication will be shut down immediately.

The type initializer for "CrystalDecisions.CrystalReports.Engine.ReportDocument" threw an 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.Runtime.InteropServices.COMException (0x80040154): COM object with CLSID {CF76A644-314B-404D-8D45-F08B51FF990B} is either not valid or not registered.
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor()
   --- End of inner exception stack trace ---
   at CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor()
   at CrystalDecisions.CrystalReports.Engine.ReportClass..ctor()
   at DPL.rptPastDue..ctor()
   at DPL.frmPastDueReportViewer.btnGenerate_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.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
DPL
    Assembly Version: 1.0.1930.19422
    Win32 Version: 1.0.1930.19422
    CodeBase: file:///C:/Program%20Files/Drinker%20Biddle%20%26%20Reath%20LLP/DPL%20Setup/DPL.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
System.Data
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll
----------------------------------------
System.Xml
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 7.0.5000.0
    Win32 Version: 7.10.3052.4
    CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
CrystalDecisions.Windows.Forms
    Assembly Version: 10.0.3300.0
    Win32 Version: 10.0.9500.0
    CodeBase: file:///C:/Program%20Files/Drinker%20Biddle%20%26%20Reath%20LLP/DPL%20Setup/CrystalDecisions.Windows.Forms.DLL
----------------------------------------
CrystalDecisions.Shared
    Assembly Version: 10.0.3300.0
    Win32 Version: 10.0.9500.0
    CodeBase: file:///C:/Program%20Files/Drinker%20Biddle%20%26%20Reath%20LLP/DPL%20Setup/CrystalDecisions.Shared.DLL
----------------------------------------
CrystalDecisions.ReportSource
    Assembly Version: 10.0.3300.0
    Win32 Version: 10.0.9500.0
    CodeBase: file:///C:/Program%20Files/Drinker%20Biddle%20%26%20Reath%20LLP/DPL%20Setup/CrystalDecisions.ReportSource.DLL
----------------------------------------
System.Web
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.web/1.0.5000.0__b03f5f7f11d50a3a/system.web.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
    Assembly Version: 10.0.3300.0
    Win32 Version: 10.0.9500.0
    CodeBase: file:///C:/Program%20Files/Drinker%20Biddle%20%26%20Reath%20LLP/DPL%20Setup/CrystalDecisions.CrystalReports.Engine.DLL
----------------------------------------
System.EnterpriseServices
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.573
    CodeBase: file:///c:/windows/assembly/gac/system.enterpriseservices/1.0.5000.0__b03f5f7f11d50a3a/system.enterpriseservices.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
    Assembly Version: 10.0.3300.0
    Win32 Version: 10.0.9500.0
    CodeBase: file:///C:/Program%20Files/Drinker%20Biddle%20%26%20Reath%20LLP/DPL%20Setup/CrystalDecisions.ReportAppServer.CommLayer.DLL
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (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 machine
rather than being handled by this dialog.
Avatar of cyberdevil67
cyberdevil67

the merge modules seem to be the wrong ones, have you donwloaded the Crystal 10 merge modules from businessobjects.com.au?

Or are you sure that the reference added is the version for the Crystal 10 merge modules. You can check this by the version of the crystaldecision engine version number. it will need to match 10.0.330
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

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
Avatar of Edward Stevens

ASKER

Thanks to cyberdevil67 and mlmcc for your responses.  I have been out of the office but will look into these on Monday.  Thanks again and sorry for the delay in getting to these.
Thanks to mlmcc.  I don't know how I got to the merge module download file that I used the first time, but clearly it is not the same one found at the URL that you provided.  After using the merge modules from your URL, everything worked perfectly.

Thanks again!

Ed
How do you mark a response as an "Assisted Answer"?  The response from cyberdevil67 should also be given some credit as it was headed down the correct path to a resolution.
In this case you will need to post a request in the Community Support TA to reopen this question.
When it is reopened, there will be a link below this comment to SPLIT POINTS.
Click SPLIT POINTS
You then assign points to each comment that helped.  The total must be the amount assigned to the Q.
You can split anyway you want to.
One of them will be selected through the check box as the answer. The others with points assigned will say Assisted Answer.

mlmcc