Hi,
I have created a new project and have used the CrystalReports assemblies and the Microsoft Interop dlls. I copied my program to another PC and when I try to run the methods that use these assemblies I get a 'FileNotFoundException' where the program states that its can't find the assemblies required.
What do I need to do?
Thanks
A
9 7963
Are the programs that you are using Interop for installed on the other PC?
I am using the Interop.Excel dll and the other pc has Office installed aswell. Is there a specific way to install dlls?
Hmm, the DLLs should be installed with Office. Perhaps it is failing because Crystal Reports is not installed? I don't know much about Crystal.
exact error ; - 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: Could not load file or assembly 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
-
File name: 'Microsoft.Office.Interop.Excel, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
-
at PackTrack.AirMaltaDataLogUC.button1_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.Control.ControlNativeWindow.OnMessage(Message& m)
-
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
-
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
-
WRN: Assembly binding logging is turned OFF.
-
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
-
Note: There is some performance penalty associated with assembly bind failure logging.
-
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
-
-
************** Loaded Assemblies **************
-
mscorlib
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
-
----------------------------------------
-
PackTrack
-
Assembly Version: 1.0.0.0
-
Win32 Version: 1.0.0.0
-
CodeBase: file:///C:/Program%20Files/PackTrack/bin/Debug/PackTrack.exe
-
----------------------------------------
-
System
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
-
----------------------------------------
-
System.Windows.Forms
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
-
----------------------------------------
-
System.Drawing
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
-
----------------------------------------
-
MySql.Data
-
Assembly Version: 5.0.9.0
-
Win32 Version: 5.0.9.0
-
CodeBase: file:///C:/Program%20Files/PackTrack/bin/Debug/MySql.Data.DLL
-
----------------------------------------
-
System.Data
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
-
----------------------------------------
-
System.Transactions
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
-
----------------------------------------
-
System.Configuration
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
-
----------------------------------------
-
System.Xml
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
-
----------------------------------------
-
System.EnterpriseServices
-
Assembly Version: 2.0.0.0
-
Win32 Version: 2.0.50727.1434 (REDBITS.050727-1400)
-
CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
-
----------------------------------------
-
************** JIT Debugging **************
-
To enable just-in-time (JIT) debugging, the .config file for this
-
application or computer (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 computer
-
rather than be handled by this dialog box.
OK, are you sure that you have Office 2007 installed on the client PC? Because the dlls are different for each version.
Hmm i'll check the version in that case.
Thanks
You may create a setup project and involove the .net dlls in it, at client install instead of copy and past.
How is that possible bassem?
I install the visual studio common files on the client and it worked though!
Thanks
No, not all common files, but only the desired .net dlls .
I didn't do it before, but i'm sure of, at setup project you can choose to involve the required .net dlls.
My PC is out of work now, so i can't check it.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: normd |
last post by:
I have a text file which contains VB.NET code. The VB.NET code is actually a
Class that can contain code, which simply displays a message box or does
something more complicated (i.e Excel/Word...
|
by: W1ld0ne74 |
last post by:
I have rewritten a VB6 COM+ object using C# .Net. The object works as
expected and registers itself in COM+ on my PC, the development server and
even on the Test server. I did battle with this...
|
by: Brian Keating |
last post by:
Hi there,
I'm wondering is there any way i can gracefully handly the
System.IO.FileNotFound exception.
Let me explain my situation.
I've got a window forms app.
I've exception handlers...
|
by: Peter Kirk |
last post by:
Hi, when I run my c# program I get this error:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in
mscorlib.dll.
Additional information: File or assembly...
|
by: Nick |
last post by:
Hello,
Let me explain my situation. There is an application in C++ (that I didn't
write) that needs to call a C# DLL. One option, I believe, would be to
compile the app with the clr switch....
|
by: Prodip Saha |
last post by:
I am trying to load a shared component like DataAccess from GAC and not been
able to successfully get it working for my asp.net application. The dll is
loading from the GAC with correct version and...
|
by: GeorgeB |
last post by:
I have built a solution in vb.net with 2 projects the project with the class
libraries and the project which consumes them.
The class library project references some other libraries(Different Class...
|
by: Rob Dob |
last post by:
Hi,
I have a VS2003 C# asp.net project that has been converted into a VS2005
project. Everything seemed to work well until I make a modification to
anything within the Component Designer...
|
by: =?Utf-8?B?c2FtMDFt?= |
last post by:
I have a remoting application that was developed on a Windows XP SP2 machine
with VS2005 SP1. I finally got everything deployed using Wix 3.0, and it
works great. Problem is, when I install the msi...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
| |