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.
************** 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
----------------------------------------
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?
T.B.