Print Page | Close Window

Problem with executing in another PC

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=12043
Printed Date: 27 Apr 2024 at 9:28pm


Topic: Problem with executing in another PC
Posted By: smarttiger
Subject: Problem with executing in another PC
Date Posted: 12 Jan 2011 at 12:03am
Hello,
 
I have created a windows application with VisualStudio .NET 2003 in my PC1 and embedded the Crystal report in this project application.
It works fine.
 
Now i copied the exe file to another PC2 of my colleague.
But this does not work.
I get the following error message in the PC2:
 

************** Exception Text **************

System.IO.FileNotFoundException: File or assembly name CrystalDecisions.CrystalReports.Engine, or one of its dependencies, was not found.

File name: "CrystalDecisions.CrystalReports.Engine"

   at BBZ_Knowledgebase.Suche.btn_berichterstellen_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)

 

=== Pre-bind state information ===

LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304

 (Fully-specified)

LOG: Appbase = D:\Eigene Dateien\_Helpdesk BBZ\Produktiv\

LOG: Initial PrivatePath = NULL

Calling assembly : BBZ-Knowledgebase, Version=1.0.4027.29226, 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.1.4322\config\machine.config.

LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=9.1.5000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304

LOG: Attempting download of new URL file:///D:/Eigene Dateien/_Helpdesk BBZ/Produktiv/CrystalDecisions.CrystalReports.Engine.DLL.

LOG: Attempting download of new URL file:///D:/Eigene Dateien/_Helpdesk BBZ/Produktiv/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.

LOG: Attempting download of new URL file:///D:/Eigene Dateien/_Helpdesk BBZ/Produktiv/CrystalDecisions.CrystalReports.Engine.EXE.

LOG: Attempting download of new URL file:///D:/Eigene Dateien/_Helpdesk BBZ/Produktiv/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.

 

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

mscorlib

    Assembly Version: 1.0.5000.0

    Win32 Version: 1.1.4322.2470

    CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll

----------------------------------------

BBZ-Knowledgebase

    Assembly Version: 1.0.4027.29226

    Win32 Version: 1.0.4027.29226

    CodeBase: file:///D:/Eigene%20Dateien/_Helpdesk%20BBZ/Produktiv/BBZ-Knowledgebase.exe

----------------------------------------

System.Windows.Forms

    Assembly Version: 1.0.5000.0

    Win32 Version: 1.1.4322.2032

    CodeBase: file:///c:/winnt/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.2470

    CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll

----------------------------------------

System.Drawing

    Assembly Version: 1.0.5000.0

    Win32 Version: 1.1.4322.2032

    CodeBase: file:///c:/winnt/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.2032

    CodeBase: file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll

----------------------------------------

Microsoft.VisualBasic

    Assembly Version: 7.0.5000.0

    Win32 Version: 7.10.6001.4

    CodeBase: file:///c:/winnt/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll

----------------------------------------

 
Why?
 
The operating system in both PC are Windows XP.
Only in my PC1 the Visual Studio .NET (Crystal Report is included in it) is installed.
In PC2 there is no Visual Studio and no Crystal Report.
 
Shall I install the Crystal Report in the PC2? I don't think so.
 
I think there must be possible to insert the dll file or assemblies only.
If yes, which filename are needed and how and where can I find these needed files?
 
Please help!
T.B.



Replies:
Posted By: hilfy
Date Posted: 14 Jan 2011 at 9:08am
You need to install the "Crystal Merge Modules" on the second machine.  This is the runtime engine and includes all of the Crystal .NET assemblies that your application will need.
 
-Dell


-------------
Proviti, Data & Analytics Practice
http://www.protiviti.com/US-en/data-management-advanced-analytics - www.protiviti.com/US-en/data-management-advanced-analytics


Posted By: smarttiger
Date Posted: 14 Jan 2011 at 9:31am
Hello Dell,

yes, today morning I found out, that the second machine need a runtime version of CR.
So I created a setup program with including the runtime versions needed to display crystal reports on the second machine this morning.
And this works!

Nevertheless: Many thanks for your response!
T.B.



Print Page | Close Window