473,788 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deployment Help

Hi,

I am using Excel in my VB.Net project. While deploying my
application on a separate machine, I am getting the
following error:

File or Assembly name Interop.Excel or one of its
dependencies was not found.

I do find Interop.Excel.d ll is existing on the target
machine.
On Google - I was pointed out to the following URL, but I
am not able to comprehend what I am supposed to do.

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnoxpta/html/odc_piaissues.a sp

Please help.

Regards

Vinay
Nov 20 '05 #1
7 2503
Hi,

I am not sure if this helps but interop.excel.d ll must be in the
same folder as your app.

Ken
----------------------
"Vinay" <cu****@cursor. com> wrote in message
news:09******** *************** *****@phx.gbl.. .
Hi,

I am using Excel in my VB.Net project. While deploying my
application on a separate machine, I am getting the
following error:

File or Assembly name Interop.Excel or one of its
dependencies was not found.

I do find Interop.Excel.d ll is existing on the target
machine.
On Google - I was pointed out to the following URL, but I
am not able to comprehend what I am supposed to do.

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnoxpta/html/odc_piaissues.a sp

Please help.

Regards

Vinay

Nov 20 '05 #2
Hi Ken,

Thanks for your reply.

I have checked and found interop.excel.d ll is existing in
the Application folder.

I have found one more thing. If I am compiling the
project on my machine under VB.Net environment it is
working; but if I am deploying it on my machine (as it
would be done on other machine using *.msi file), it is
not working.

Regards

Vinay

-----Original Message-----
Hi,

I am not sure if this helps but interop.excel.d ll must be in thesame folder as your app.

Ken
----------------------
"Vinay" <cu****@cursor. com> wrote in message
news:09******* *************** ******@phx.gbl. ..
Hi,

I am using Excel in my VB.Net project. While deploying my application on a separate machine, I am getting the
following error:

File or Assembly name Interop.Excel or one of its
dependencies was not found.

I do find Interop.Excel.d ll is existing on the target
machine.
On Google - I was pointed out to the following URL, but I am not able to comprehend what I am supposed to do.

http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnoxpta/html/odc_piaissues.a sp

Please help.

Regards

Vinay

.

Nov 20 '05 #3
Hi Vinary,

Thanks for posting.

It seems that some dependencies of the "Interop.Excel. dll" is not found on
your target machine. Do we have Excel properly installed and COM components
properly registered on it?

To find out what is missing, we can make use of 2 utilities named FileMon
and RegMon:

The use of RegMon:

1. Download RegMon from http://www.sysinternals.com/files/ntregmon.zip

2. Extract the file to a temp folder. Close all other unnecessary programs.

3. Start RegMon. The utility is used to capture registry related
activities. Press CTRL + E to pause the capture. Then press CTRL + X to
clean the log. Press CTRL + L to set the filter. We replace the "*" with
your application (e.g. "WindowsApplica tion1.exe" here, so that only related
activities are captured.

4. Open your program and get ready to reproduce the error.

5. Switch back to RegMon and press CTRL + E to start the capture.

6. Switch to your application to reproduce the error.

7. Once the error message pops up, go to RegMon immediately and press CTRL
+ E to stop the capture. Press CTRL + S to save the log to a file.

8. Analyze the RegMon log. It is likely that your application is trying to
access a COM component but the class ID for it is not found in your
registry. Let's see whether we have any "NOT FOUND" near the end of the log.

The FileMon is a very similar utility that captures file access related
activities. If any file your application trying to read is missing, FileMon
will reveal it. You may download it from the following link:
http://www.sysinternals.com/files/NTFILMON.ZIP

I hope the information is useful to you.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #4
Hi Felix,

Thanks for giving me more insight. I have tried Regmon utility and I
did find many NOTFOUNDs. Some initial lines of this log is pasted
below.

Can you help me in interpreting this log and point where I am going
wrong now. My application is running and it is only when I try to use
Excel it gives the error "File or Assembly Name Interop.Excel or one
of its dependencies was not found'.

Regards

Vinay

1 136.10604029 explorer.exe:54 8 OpenKey HKCU\Applicatio ns\MyStock.exe NOTFOUND
2 136.10607410 explorer.exe:54 8 OpenKey HKCR\Applicatio ns\MyStock.exe NOTFOUND
3 136.10640626 explorer.exe:54 8 QueryValue HKCU\Software\M icrosoft\Window s\ShellNoRoam\M UICache\C:\Docu ments
and Settings\Vinayg \Desktop\MyStoc k.exe SUCCESS " "
4 136.11276824 explorer.exe:54 8 OpenKey HKCU\Applicatio ns\MyStock.exe NOTFOUND
5 136.11280149 explorer.exe:54 8 OpenKey HKCR\Applicatio ns\MyStock.exe NOTFOUND
6 136.11309678 explorer.exe:54 8 QueryValue HKCU\Software\M icrosoft\Window s\ShellNoRoam\M UICache\C:\Docu ments
and Settings\Vinayg \Desktop\MyStoc k.exe SUCCESS " "
7 136.33999321 explorer.exe:54 8 OpenKey HKCU\Applicatio ns\MyStock.exe NOTFOUND
8 136.34002618 explorer.exe:54 8 OpenKey HKCR\Applicatio ns\MyStock.exe NOTFOUND
9 136.34063324 explorer.exe:54 8 QueryValue HKCU\Software\M icrosoft\Window s\ShellNoRoam\M UICache\C:\Docu ments
and Settings\Vinayg \Desktop\MyStoc k.exe SUCCESS " "
10 136.34091428 explorer.exe:54 8 OpenKey HKCU\Applicatio ns\MyStock.exe NOTFOUND
11 136.34094557 explorer.exe:54 8 OpenKey HKCR\Applicatio ns\MyStock.exe NOTFOUND
12 136.34120510 explorer.exe:54 8 QueryValue HKCU\Software\M icrosoft\Window s\ShellNoRoam\M UICache\C:\Docu ments
and Settings\Vinayg \Desktop\MyStoc k.exe SUCCESS " "
13 136.34141322 explorer.exe:54 8 OpenKey HKCU\Applicatio ns\MyStock.exe NOTFOUND
14 136.34144032 explorer.exe:54 8 OpenKey HKCR\Applicatio ns\MyStock.exe NOTFOUND
15 136.34165515 explorer.exe:54 8 QueryValue HKCU\Software\M icrosoft\Window s\ShellNoRoam\M UICache\C:\Docu ments
and Settings\Vinayg \Desktop\MyStoc k.exe SUCCESS " "
16 136.34184680 explorer.exe:54 8 OpenKey HKCU\Applicatio ns\MyStock.exe NOTFOUND
17 136.34187362 explorer.exe:54 8 OpenKey HKCR\Applicatio ns\MyStock.exe NOTFOUND
18 136.34208258 explorer.exe:54 8 QueryValue HKCU\Software\M icrosoft\Window s\ShellNoRoam\M UICache\C:\Docu ments
and Settings\Vinayg \Desktop\MyStoc k.exe SUCCESS " "
19 140.10235686 MyStock.exe:357 2 OpenKey HKLM\Software\M icrosoft\Fusion SUCCESS Key:
0xE17F7AC0
20 140.10238257 MyStock.exe:357 2 QueryValue HKLM\Software\M icrosoft\Fusion \LogPath NOTFOUND
21 140.10243481 MyStock.exe:357 2 CloseKey HKLM\Software\M icrosoft\Fusion SUCCESS Key:
0xE17F7AC0
22 140.10374000 MyStock.exe:357 2 OpenKey HKLM\SOFTWARE\M icrosoft\Window s\CurrentVersio n\Installer\Man aged\S-1-5-21-1547161642-362288127-725345543-1110\Installer\ Assemblies\C:|D ocuments
and Settings|Vinayg |Desktop|MyStoc k.exe.config NOTFOUND
23 140.10378805 MyStock.exe:357 2 OpenKey HKCU\Software\M icrosoft\Instal ler\Assemblies\ C:|Documents
and Settings|Vinayg |Desktop|MyStoc k.exe.config NOTFOUND
24 140.10382409 MyStock.exe:357 2 OpenKey HKCR\Installer\ Assemblies\C:|D ocuments
and Settings|Vinayg |Desktop|MyStoc k.exe.config NOTFOUND
25 140.10386292 MyStock.exe:357 2 OpenKey HKLM\SOFTWARE\M icrosoft\Window s\CurrentVersio n\Installer\Man aged\S-1-5-21-1547161642-362288127-725345543-1110\Installer\ Assemblies\Glob al NOTFOUND
26 140.10388974 MyStock.exe:357 2 OpenKey HKCU\Software\M icrosoft\Instal ler\Assemblies\ Global NOTFOUND
27 140.10393779 MyStock.exe:357 2 OpenKey HKCR\Installer\ Assemblies\Glob al SUCCESS Key:
0xE17F7AC0
28 140.10396936 MyStock.exe:357 2 EnumerateValue HKCR\Installer\ Assemblies\Glob al BUFOVRFLOW
29 140.10399171 MyStock.exe:357 2 EnumerateValue HKCR\Installer\ Assemblies\Glob al\Regcode,Vers ion="1.0.3300.0 ",PublicKeyToke n="b03f5f7f11d5 0a3a",Culture=" neutral" SUCCESS "S~~&==b}09U,)k &Hq]wDFull_Redist>Q ~1aV[Oi^9Kf+jNNJE_3"
30 140.10404004 MyStock.exe:357 2 EnumerateValue HKCR\Installer\ Assemblies\Glob al BUFOVRFLOW

v-*****@online.mi crosoft.com (Felix Wang) wrote in message news:<lq******* ******@cpmsftng xa06.phx.gbl>.. .
Hi Vinary,

Thanks for posting.

It seems that some dependencies of the "Interop.Excel. dll" is not found on
your target machine. Do we have Excel properly installed and COM components
properly registered on it?

To find out what is missing, we can make use of 2 utilities named FileMon
and RegMon:

The use of RegMon:

1. Download RegMon from http://www.sysinternals.com/files/ntregmon.zip

2. Extract the file to a temp folder. Close all other unnecessary programs.

3. Start RegMon. The utility is used to capture registry related
activities. Press CTRL + E to pause the capture. Then press CTRL + X to
clean the log. Press CTRL + L to set the filter. We replace the "*" with
your application (e.g. "WindowsApplica tion1.exe" here, so that only related
activities are captured.

4. Open your program and get ready to reproduce the error.

5. Switch back to RegMon and press CTRL + E to start the capture.

6. Switch to your application to reproduce the error.

7. Once the error message pops up, go to RegMon immediately and press CTRL
+ E to stop the capture. Press CTRL + S to save the log to a file.

8. Analyze the RegMon log. It is likely that your application is trying to
access a COM component but the class ID for it is not found in your
registry. Let's see whether we have any "NOT FOUND" near the end of the log.

The FileMon is a very similar utility that captures file access related
activities. If any file your application trying to read is missing, FileMon
will reveal it. You may download it from the following link:
http://www.sysinternals.com/files/NTFILMON.ZIP

I hope the information is useful to you.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #5
Hi Vinary,

These "NOT FOUND"s are normal here. They are not sufficient to reveal the
problem. For this issue, probably FileMon will be more helpful.

Apart from the logs, we should also have a "Details" button when the error
message pops up. Could you click the "Details" button of the error dialog
and paste the content of text field here as well?

If the MSI file is not large, do you think it is convenient if you send it
to me to have a look? Please add it to a zip first.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #6
Hi Felix,

Thanks for your prompt response.

FileMon did the trick and I am able to resolve my problem. It pointed
out that Interop.excel was missing from my desktop folder. As Ken
Tucker had pointed out it must be in the same folder as
application.exe , when I manually moved Interop.excel to desktop
folder, application had started working.

The whole confusion started due to existence of application.exe in 2
folders. While packaging this application (Windows Installer), I had
inadvertently created a reference to Primary Output (application.ex e)
in the desktop folder. Application.exe and relevant interop.excel were
also existing in Program Files application folder. I was always
finding interop.excel in the same folder as application.exe .

Now I have created a shortcut to application.exe in desktop folder so
avoided the reference to primary out at 2 places.

Thank you once again for your help and letting us know about these 2
wonderful utilities.

Regards

Vinay

v-*****@online.mi crosoft.com (Felix Wang) wrote in message news:<XC******* *******@cpmsftn gxa06.phx.gbl>. ..
Hi Vinary,

These "NOT FOUND"s are normal here. They are not sufficient to reveal the
problem. For this issue, probably FileMon will be more helpful.

Apart from the logs, we should also have a "Details" button when the error
message pops up. Could you click the "Details" button of the error dialog
and paste the content of text field here as well?

If the MSI file is not large, do you think it is convenient if you send it
to me to have a look? Please add it to a zip first.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #7
Hi Vinary,

Thanks for your feedback. I am glad to be of help.

I hope you enjoy posting here.

Regards,

Felix Wang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
600
by: ksskumar | last post by:
Hi Friends, My software's target is to creating a add-in for Outlook. I am struckup of creating deployment of my software. My software flow is as follows, 1. Complete functionality is done in C# Class library project In this .dll I am used the following COM components,
6
2036
by: Paul | last post by:
Hello everyone: I am developing a VB.Net Windows Application and I am now ready to create the deployment project for it. This application needs to be installable on a different number of users / clients, and the application has an Access DB out on their network. How can I create a deployment routine where I can have a dialog box prompt for the network share (i.e. \\server\dbfolder) at install-time? Once network the share is specified...
4
2132
by: wobbles | last post by:
Hi Everyone, I'm really struggling to get no-touch deployment to work well (if at all, in some cases). Can anyone recommend a good book on this topic? There seem to be a lot of blogs about "no-touch deployment"/"smart clients" but nothing that explains the entire technology, how to implement it effectively or the various aspects involved - in any step-by-step, cohesive manner.
3
2040
by: Steve Brecher | last post by:
VS.NET help on deployment indicates that, while using a deployment project requires administrative access to IIS, " we recommend deploying your project in most cases, because it allows you to take advantage of extensive deployment project management features, such as registration and IIS configuration." I guess that users of shared web hosts are using copying rather than a deployment project. What problems might this run into? I.e.,...
4
3537
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
1
650
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
7
2841
by: dhussong | last post by:
I have created a Setup and Deployment project in Visual Studio.NET 2003. After my installation has completed running I'd like to launch the EXE that I just installed. I've found how to launch the EXE in the Custom Actions area of the Setup and Deployment project. Unfortunately when the EXE is launched it causes the setup program to stay open until the EXE has been exited. Anyone have any ideas how to launch the EXE and get the setup...
11
1624
by: Thom Little | last post by:
Create two ASP.NET applications. Run them on the development machine to make sure they are error free. Publish the fist application to the root of a remote webspace. Call a page and see that it operates correctly. Publish the second application to the root of the same remote webspace. Permit it to overwrite existing files. Call a page and notice that it waits forever.
2
13851
by: Bill Nguyen | last post by:
I ran into this error trying to run an app from Publish.htm. I can't find what is wrong with the deployment. Thanks a million Bill -------- PLATFORM VERSION INFO
2
373
by: Miro | last post by:
Reading the help file it says in step 2 to click on "other project types" and then click on "Setup and Deployment projects".( see below ) I am using vb2005 express. Im assuming this is not an express option? I do not have that option available. All I have is: -Windows Application -Class Library -Consol Applicaotin -My Movie Colleciton -Screen Saver Starter Kit
0
10370
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10177
jinu1996
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...
0
9969
tracyyun
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...
0
8995
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7519
isladogs
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...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5402
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...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.