Solved

Error in distributed application (vb.net)

Posted on 2003-10-31
12
2,443 Views
Last Modified: 2007-12-19
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.forms, 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 ?
0
Comment
Question by:peterdevadoss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +3
12 Comments
 

Author Comment

by:peterdevadoss
ID: 9656955
Following is the complete error message:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: File or assembly name CrystalDecisions.Windows.Forms, or one of its dependencies, was not found.
File name: "CrystalDecisions.Windows.Forms"
   at Tele_Marketting.frmReports.InitializeComponent()
   at Tele_Marketting.frmReports..ctor()
   at Tele_Marketting.frmMain.btnReports_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)

Fusion log follows:
=== Pre-bind state information ===
LOG: DisplayName = CrystalDecisions.Windows.Forms, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
 (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\Framework\v1.0.3705\config\machine.config.
LOG: Post-policy reference: CrystalDecisions.Windows.Forms, Version=9.1.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: Attempting download of new URL file:///D:/Tele Marketing/CrystalDecisions.Windows.Forms.DLL.
LOG: Attempting download of new URL file:///D:/Tele Marketing/CrystalDecisions.Windows.Forms/CrystalDecisions.Windows.Forms.DLL.
LOG: Attempting download of new URL file:///D:/Tele Marketing/CrystalDecisions.Windows.Forms.EXE.
LOG: Attempting download of new URL file:///D:/Tele Marketing/CrystalDecisions.Windows.Forms/CrystalDecisions.Windows.Forms.EXE.



************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/winnt/microsoft.net/framework/v1.0.3705/mscorlib.dll
----------------------------------------
Tele Marketting
    Assembly Version: 1.0.1399.26845
    Win32 Version: 1.0.1399.26845
    CodeBase: file:///D:/Tele%20Marketing/Tele%20Marketting.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.3300.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/winnt/assembly/gac/system/1.0.3300.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.3300.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.00.9466
    CodeBase: file:///c:/winnt/assembly/gac/microsoft.visualbasic/7.0.3300.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
System.Data
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/winnt/assembly/gac/system.data/1.0.3300.0__b77a5c561934e089/system.data.dll
----------------------------------------
System.EnterpriseServices
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/winnt/assembly/gac/system.enterpriseservices/1.0.3300.0__b03f5f7f11d50a3a/system.enterpriseservices.dll
----------------------------------------
System.Xml
    Assembly Version: 1.0.3300.0
    Win32 Version: 1.0.3705.0
    CodeBase: file:///c:/winnt/assembly/gac/system.xml/1.0.3300.0__b77a5c561934e089/system.xml.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.
0
 
LVL 42

Expert Comment

by:frodoman
ID: 9657212
Your merge modules are right, but make sure your project includes a reference to CrystalDecisions.Windows.Forms 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).

0
 

Author Comment

by:peterdevadoss
ID: 9657860
the referce is also correct as follows:
Imports CrystalDecisions.Windows.Forms

0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 42

Expert Comment

by:frodoman
ID: 9657927
Do you also have:

Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
0
 
LVL 42

Expert Comment

by:frodoman
ID: 9657939
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

0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9657960
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
0
 
LVL 9

Expert Comment

by:msdixon
ID: 9658121
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.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 9659204
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_Access2003.msm
· Crystal_Database_Access2003_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)
0
 

Author Comment

by:peterdevadoss
ID: 9662331
Very good answer from msdixon. His answer is worthy of 1000 points atleast (!!!!!!!)
Unfortunately, I dont have that much credits.
sorry msdixon.
0
 
LVL 9

Expert Comment

by:msdixon
ID: 9663051
i thought you would agree... unfortunately, you probably can't make the decision to remove crystal reports from your application.
0
 

Accepted Solution

by:
peterdevadoss earned 0 total points
ID: 9678350
There might be a problem in registering some components.  I changed my setup type from loose compressed files to setup files.  Then I run the setup in the client pc. its ok. there is no prob in running the crystal report from my application.

But its still wired to me.. the crystal report thing.

0
 

Expert Comment

by:YensidMod
ID: 9978874
Question has been PAQed and 20 points refunded.

YensidMod
Experts Exchange Moderator
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
PowerShell:  Column widths won't expand 3 58
Data organization issue 7 55
Need to sort columns in DataGridView 4 64
Intermittent OleDbConnection Error 20 52
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question