473,386 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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.dll 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.asp

Please help.

Regards

Vinay
Nov 20 '05 #1
7 2478
Hi,

I am not sure if this helps but interop.excel.dll 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.dll 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.asp

Please help.

Regards

Vinay

Nov 20 '05 #2
Hi Ken,

Thanks for your reply.

I have checked and found interop.excel.dll 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.dll 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.dll 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.asp

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. "WindowsApplication1.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:548 OpenKey HKCU\Applications\MyStock.exe NOTFOUND
2 136.10607410 explorer.exe:548 OpenKey HKCR\Applications\MyStock.exe NOTFOUND
3 136.10640626 explorer.exe:548 QueryValue HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICac he\C:\Documents
and Settings\Vinayg\Desktop\MyStock.exe SUCCESS " "
4 136.11276824 explorer.exe:548 OpenKey HKCU\Applications\MyStock.exe NOTFOUND
5 136.11280149 explorer.exe:548 OpenKey HKCR\Applications\MyStock.exe NOTFOUND
6 136.11309678 explorer.exe:548 QueryValue HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICac he\C:\Documents
and Settings\Vinayg\Desktop\MyStock.exe SUCCESS " "
7 136.33999321 explorer.exe:548 OpenKey HKCU\Applications\MyStock.exe NOTFOUND
8 136.34002618 explorer.exe:548 OpenKey HKCR\Applications\MyStock.exe NOTFOUND
9 136.34063324 explorer.exe:548 QueryValue HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICac he\C:\Documents
and Settings\Vinayg\Desktop\MyStock.exe SUCCESS " "
10 136.34091428 explorer.exe:548 OpenKey HKCU\Applications\MyStock.exe NOTFOUND
11 136.34094557 explorer.exe:548 OpenKey HKCR\Applications\MyStock.exe NOTFOUND
12 136.34120510 explorer.exe:548 QueryValue HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICac he\C:\Documents
and Settings\Vinayg\Desktop\MyStock.exe SUCCESS " "
13 136.34141322 explorer.exe:548 OpenKey HKCU\Applications\MyStock.exe NOTFOUND
14 136.34144032 explorer.exe:548 OpenKey HKCR\Applications\MyStock.exe NOTFOUND
15 136.34165515 explorer.exe:548 QueryValue HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICac he\C:\Documents
and Settings\Vinayg\Desktop\MyStock.exe SUCCESS " "
16 136.34184680 explorer.exe:548 OpenKey HKCU\Applications\MyStock.exe NOTFOUND
17 136.34187362 explorer.exe:548 OpenKey HKCR\Applications\MyStock.exe NOTFOUND
18 136.34208258 explorer.exe:548 QueryValue HKCU\Software\Microsoft\Windows\ShellNoRoam\MUICac he\C:\Documents
and Settings\Vinayg\Desktop\MyStock.exe SUCCESS " "
19 140.10235686 MyStock.exe:3572 OpenKey HKLM\Software\Microsoft\Fusion SUCCESS Key:
0xE17F7AC0
20 140.10238257 MyStock.exe:3572 QueryValue HKLM\Software\Microsoft\Fusion\LogPath NOTFOUND
21 140.10243481 MyStock.exe:3572 CloseKey HKLM\Software\Microsoft\Fusion SUCCESS Key:
0xE17F7AC0
22 140.10374000 MyStock.exe:3572 OpenKey HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Ins taller\Managed\S-1-5-21-1547161642-362288127-725345543-1110\Installer\Assemblies\C:|Documents
and Settings|Vinayg|Desktop|MyStock.exe.config NOTFOUND
23 140.10378805 MyStock.exe:3572 OpenKey HKCU\Software\Microsoft\Installer\Assemblies\C:|Do cuments
and Settings|Vinayg|Desktop|MyStock.exe.config NOTFOUND
24 140.10382409 MyStock.exe:3572 OpenKey HKCR\Installer\Assemblies\C:|Documents
and Settings|Vinayg|Desktop|MyStock.exe.config NOTFOUND
25 140.10386292 MyStock.exe:3572 OpenKey HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Ins taller\Managed\S-1-5-21-1547161642-362288127-725345543-1110\Installer\Assemblies\Global NOTFOUND
26 140.10388974 MyStock.exe:3572 OpenKey HKCU\Software\Microsoft\Installer\Assemblies\Globa l NOTFOUND
27 140.10393779 MyStock.exe:3572 OpenKey HKCR\Installer\Assemblies\Global SUCCESS Key:
0xE17F7AC0
28 140.10396936 MyStock.exe:3572 EnumerateValue HKCR\Installer\Assemblies\Global BUFOVRFLOW
29 140.10399171 MyStock.exe:3572 EnumerateValue HKCR\Installer\Assemblies\Global\Regcode,Version=" 1.0.3300.0",PublicKeyToken="b03f5f7f11d50a3a",Cult ure="neutral" SUCCESS "S~~&==b}09U,)k&Hq]wDFull_Redist>Q~1aV[Oi^9Kf+jNNJE_3"
30 140.10404004 MyStock.exe:3572 EnumerateValue HKCR\Installer\Assemblies\Global BUFOVRFLOW

v-*****@online.microsoft.com (Felix Wang) wrote in message news:<lq*************@cpmsftngxa06.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. "WindowsApplication1.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.exe)
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.microsoft.com (Felix Wang) wrote in message news:<XC**************@cpmsftngxa06.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
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...
6
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...
4
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...
3
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...
4
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...
1
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...
7
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...
11
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...
2
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
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.