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 'FileNotFoundEx ception' where the program states that its can't find the assemblies required.
What do I need to do?
Thanks
A
9 7998
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 Automation, communicate with the
DB and/or WebServices, talk to other classes). To achieve a complicated task,
this class would need reference to other custom assemblies (not part of .net
framework) that are possibly not installed to the GAC.
In my...
|
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 problem on the test server,
but it seemed to resolve itself. This problem however is not resolving itself
on the Production server.
The COM+ object chats with a 3rd party dll (Registered using Regsrv32) via
an Interop proxy dll. All are in the same...
|
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 for
|
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 ASolutions.Directory.Service or one
of its dependencies was not found.
Great... but how do I find out exactly what could not be found? (I am using
several libraries, which also use other libraries, and I would really like
to know what it is I need to find).
|
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. Rather than do that first the other
developer wondered if I could create an intermediate managed code DLL that
would call my C# code.
So, I created a C++ DLL that exports a function and compiled it with the clr
switch. It calls my C# code. To test...
| |
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 I can verify it from Output
window of VS.Net IDE. I can change the policy and it works because I can see
the oldversion is redirected to newVersion.
The problem is- unless I copy the dll in the bin directory of the
application I get...
|
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
projects).
The solution compiles without a problem.
I cannot run the solution in debug mode within the IDE, despite that ALL the
projects are for debugging.
The app run correctly when I invoke it outside the IDE from the bin directory.
|
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 window, i.e. I add a SQLCommand. At
that point VS2005 changes my C# file to now load all Selectcommantext data
from the resource file instead of the .aspx.cs file. then when I try and
once again run my application I get the following error: looking...
|
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 on a W23 server SP2, I get
the following error:
System.Runtime.Remoting.RemotingException: Remoting configuration failed
with the exception 'System.Reflection.TargetInvocationException: Exception
has been thrown by the target of an invocation....
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |