peterdevadoss
asked on
Error in distributed application (vb.net)
I have an crystalreport object in my project.
when ever i run the appliction, (from the client pc), following error appears:
An unhandled exception has occured in your application.
File or assembly name crystaldecision.windows.fo rms, or one of its
dependencies, was not found.
I have properly added the following merge modules:
managed.msm
database_access.msm
database_access_enu.msm
regwiz.msn
what else the problem ?
when ever i run the appliction, (from the client pc), following error appears:
An unhandled exception has occured in your application.
File or assembly name crystaldecision.windows.fo
dependencies, was not found.
I have properly added the following merge modules:
managed.msm
database_access.msm
database_access_enu.msm
regwiz.msn
what else the problem ?
Your merge modules are right, but make sure your project includes a reference to CrystalDecisions.Windows.F orms and that it didn't mistakenly get excluded from the assembly project.
You might also want to consider updating the client to version 1.1 of the .net framework ( I don't really think that's the problem, but I've only used crystal with 1.1 so maybe there's something I don't know about it).
You might also want to consider updating the client to version 1.1 of the .net framework ( I don't really think that's the problem, but I've only used crystal with 1.1 so maybe there's something I don't know about it).
ASKER
the referce is also correct as follows:
Imports CrystalDecisions.Windows.F orms
Imports CrystalDecisions.Windows.F
Do you also have:
Imports CrystalDecisions.CrystalRe ports.Engi ne
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalRe
Imports CrystalDecisions.Shared
Here's another possibility. If you upgraded from VS2002 to VS2003, there is a configuration bug. See the solution at crystal support:
http://support.crystaldecisions.com/library/kbase/articles/c2013897.asp
http://support.crystaldecisions.com/library/kbase/articles/c2013897.asp
This might be helpful:
How do you deploy an application that uses Crystal Reports and VS .NET?
http://support.crystaldecisions.com/library/kbase/articles/c2013175.asp
How do you deploy an application that uses Crystal Reports and VS .NET?
http://support.crystaldecisions.com/library/kbase/articles/c2013175.asp
here's your problem right here:
"I have an crystalreport object in my project."
i tried to use the crappy crystal reports objects included in visual studio, but they don't work very well.
try contacting the crystal decisions tech support. that's what i had to do.
"I have an crystalreport object in my project."
i tried to use the crappy crystal reports objects included in visual studio, but they don't work very well.
try contacting the crystal decisions tech support. that's what i had to do.
from http://support.crystaldecisions.com/library/kbase/articles/c2013175.asp
3. Instead of using the merge modules listed in 'crnet_deployment.pdf', replace those merge modules with the following files:
· Crystal_Database_Access200 3.msm
· Crystal_Database_Access200 3_enu.msm
· Crystal_Managed2003.msm
· Crystal_regwiz2003.msm
· VC_User_CRT71_RTL_X86_---. msm (used for reports
based on ADO.NET)
· VC_User_STL71_RTL_X86_---. msm (used for reports
based on ADO.NET)
3. Instead of using the merge modules listed in 'crnet_deployment.pdf', replace those merge modules with the following files:
· Crystal_Database_Access200
· Crystal_Database_Access200
· Crystal_Managed2003.msm
· Crystal_regwiz2003.msm
· VC_User_CRT71_RTL_X86_---.
based on ADO.NET)
· VC_User_STL71_RTL_X86_---.
based on ADO.NET)
ASKER
Very good answer from msdixon. His answer is worthy of 1000 points atleast (!!!!!!!)
Unfortunately, I dont have that much credits.
sorry msdixon.
Unfortunately, I dont have that much credits.
sorry msdixon.
i thought you would agree... unfortunately, you probably can't make the decision to remove crystal reports from your application.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Question has been PAQed and 20 points refunded.
YensidMod
Experts Exchange Moderator
YensidMod
Experts Exchange Moderator
ASKER
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundExce
File name: "CrystalDecisions.Windows.
at Tele_Marketting.frmReports
at Tele_Marketting.frmReports
at Tele_Marketting.frmMain.bt
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
Fusion log follows:
=== Pre-bind state information ===
LOG: DisplayName = CrystalDecisions.Windows.F
(Fully-specified)
LOG: Appbase = D:\Tele Marketing\
LOG: Initial PrivatePath = NULL
Calling assembly : Tele Marketting, Version=1.0.1399.26845, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Fra
LOG: Post-policy reference: CrystalDecisions.Windows.F
LOG: Attempting download of new URL file:///D:/Tele Marketing/CrystalDecisions
LOG: Attempting download of new URL file:///D:/Tele Marketing/CrystalDecisions
LOG: Attempting download of new URL file:///D:/Tele Marketing/CrystalDecisions
LOG: Attempting download of new URL file:///D:/Tele Marketing/CrystalDecisions
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/winnt/microsoft
--------------------------
Tele Marketting
Assembly Version: 1.0.1399.26845
Win32 Version: 1.0.1399.26845
CodeBase: file:///D:/Tele%20Marketin
--------------------------
System.Windows.Forms
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/winnt/assembly/
--------------------------
System
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/winnt/assembly/
--------------------------
System.Drawing
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/winnt/assembly/
--------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.3300.0
Win32 Version: 7.00.9466
CodeBase: file:///c:/winnt/assembly/
--------------------------
System.Data
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/winnt/assembly/
--------------------------
System.EnterpriseServices
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/winnt/assembly/
--------------------------
System.Xml
Assembly Version: 1.0.3300.0
Win32 Version: 1.0.3705.0
CodeBase: file:///c:/winnt/assembly/
--------------------------
************** 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.