Edward Stevens
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.CrystalR eports.Eng ine.Report Document" 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.TypeInitializationE xception: The type initializer for "CrystalDecisions.CrystalR eports.Eng ine.Report Document" threw an exception. ---> System.Runtime.InteropServ ices.COMEx ception (0x80040154): COM object with CLSID {CF76A644-314B-404D-8D45-F 08B51FF990 B} is either not valid or not registered.
at CrystalDecisions.CrystalRe ports.Engi ne.ReportD ocument..c ctor()
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalRe ports.Engi ne.ReportD ocument..c tor()
at CrystalDecisions.CrystalRe ports.Engi ne.ReportC lass..ctor ()
at DPL.rptPastDue..ctor()
at DPL.frmPastDueReportViewer .btnGenera te_Click(O bject sender, EventArgs e)
at System.Windows.Forms.Contr ol.OnClick (EventArgs e)
at System.Windows.Forms.Butto n.OnClick( EventArgs e)
at System.Windows.Forms.Butto n.OnMouseU p(MouseEve ntArgs mevent)
at System.Windows.Forms.Contr ol.WmMouse Up(Message & m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Contr ol.WndProc (Message& m)
at System.Windows.Forms.Butto nBase.WndP roc(Messag e& m)
at System.Windows.Forms.Butto n.WndProc( Message& m)
at System.Windows.Forms.Contr olNativeWi ndow.OnMes sage(Messa ge& m)
at System.Windows.Forms.Contr olNativeWi ndow.WndPr oc(Message & m)
at System.Windows.Forms.Nativ eWindow.Ca llback(Int Ptr 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/microso ft.net/fra mework/v1. 1.4322/msc orlib.dll
-------------------------- ---------- ----
DPL
Assembly Version: 1.0.1930.19422
Win32 Version: 1.0.1930.19422
CodeBase: file:///C:/Program%20Files /Drinker%2 0Biddle%20 %26%20Reat h%20LLP/DP L%20Setup/ DPL.exe
-------------------------- ---------- ----
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.windows .forms/1.0 .5000.0__b 77a5c56193 4e089/syst em.windows .forms.dll
-------------------------- ---------- ----
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em/1.0.500 0.0__b77a5 c561934e08 9/system.d ll
-------------------------- ---------- ----
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.drawing /1.0.5000. 0__b03f5f7 f11d50a3a/ system.dra wing.dll
-------------------------- ---------- ----
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.data/1. 0.5000.0__ b77a5c5619 34e089/sys tem.data.d ll
-------------------------- ---------- ----
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.xml/1.0 .5000.0__b 77a5c56193 4e089/syst em.xml.dll
-------------------------- ---------- ----
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase: file:///c:/windows/assembl y/gac/micr osoft.visu albasic/7. 0.5000.0__ b03f5f7f11 d50a3a/mic rosoft.vis ualbasic.d ll
-------------------------- ---------- ----
CrystalDecisions.Windows.F orms
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files /Drinker%2 0Biddle%20 %26%20Reat h%20LLP/DP L%20Setup/ CrystalDec isions.Win dows.Forms .DLL
-------------------------- ---------- ----
CrystalDecisions.Shared
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files /Drinker%2 0Biddle%20 %26%20Reat h%20LLP/DP L%20Setup/ CrystalDec isions.Sha red.DLL
-------------------------- ---------- ----
CrystalDecisions.ReportSou rce
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files /Drinker%2 0Biddle%20 %26%20Reat h%20LLP/DP L%20Setup/ CrystalDec isions.Rep ortSource. DLL
-------------------------- ---------- ----
System.Web
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.web/1.0 .5000.0__b 03f5f7f11d 50a3a/syst em.web.dll
-------------------------- ---------- ----
CrystalDecisions.CrystalRe ports.Engi ne
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files /Drinker%2 0Biddle%20 %26%20Reat h%20LLP/DP L%20Setup/ CrystalDec isions.Cry stalReport s.Engine.D LL
-------------------------- ---------- ----
System.EnterpriseServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl y/gac/syst em.enterpr iseservice s/1.0.5000 .0__b03f5f 7f11d50a3a /system.en terprisese rvices.dll
-------------------------- ---------- ----
CrystalDecisions.ReportApp Server.Com mLayer
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files /Drinker%2 0Biddle%20 %26%20Reat h%20LLP/DP L%20Setup/ CrystalDec isions.Rep ortAppServ er.CommLay er.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.
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.CrystalR
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeInitializationE
at CrystalDecisions.CrystalRe
--- End of inner exception stack trace ---
at CrystalDecisions.CrystalRe
at CrystalDecisions.CrystalRe
at DPL.rptPastDue..ctor()
at DPL.frmPastDueReportViewer
at System.Windows.Forms.Contr
at System.Windows.Forms.Butto
at System.Windows.Forms.Butto
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Butto
at System.Windows.Forms.Butto
at System.Windows.Forms.Contr
at System.Windows.Forms.Contr
at System.Windows.Forms.Nativ
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microso
--------------------------
DPL
Assembly Version: 1.0.1930.19422
Win32 Version: 1.0.1930.19422
CodeBase: file:///C:/Program%20Files
--------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
System.Data
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase: file:///c:/windows/assembl
--------------------------
CrystalDecisions.Windows.F
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files
--------------------------
CrystalDecisions.Shared
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files
--------------------------
CrystalDecisions.ReportSou
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files
--------------------------
System.Web
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
CrystalDecisions.CrystalRe
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files
--------------------------
System.EnterpriseServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembl
--------------------------
CrystalDecisions.ReportApp
Assembly Version: 10.0.3300.0
Win32 Version: 10.0.9500.0
CodeBase: file:///C:/Program%20Files
--------------------------
************** 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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
ASKER
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
Thanks again!
Ed
ASKER
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
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
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