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.