This is a deployment question in regards to deploying a VB.Net App that uses the Microsoft.Office.Interop.E
xcel Assembly. I can build in both release and debug and get the following message:
WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E0
89' Version='1.0.5000.0') of assembly 'office.dll'
WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E0
89' Version='1.0.5000.0') of assembly 'Microsoft.Office.Interop.
Excel.dll'
WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E0
89' Version='1.0.5000.0') of assembly 'Microsoft.Vbe.Interop.dll
'
When I take the deployment results and deploy them on my machine everything runs fine, obviously when I deploy to any other machine when it hits the creation of the application object I get the following exceptions:
System.IO.FileNotFoundExce
ption: File or assembly name Microsoft.Office.Interop.E
xcel, or one of its dependencies, was not found.
File name: "Microsoft.Office.Interop.
Excel"
at _401KReport.net.TSCRA401KM
ain.TSCRA4
01KReport(
String iniPathname, String ExcelPathname, DateTime CheckDate)
at _401KReport.net.Excel401KM
ain.RunRep
ortButton_
Click(Obje
ct sender, EventArgs e)
at System.Windows.Forms.Contr
ol.OnClick
(EventArgs
e)
at System.Windows.Forms.Butto
n.OnClick(
EventArgs e)
at System.Windows.Forms.Butto
n.OnMouseU
p(MouseEve
ntArgs mevent)
at System.Windows.Forms.Contr
ol.WmMouse
Up(Message
& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Contr
ol.WndProc
(Message& m)
at System.Windows.Forms.Butto
nBase.WndP
roc(Messag
e& m)
at System.Windows.Forms.Butto
n.WndProc(
Message& m)
at System.Windows.Forms.Contr
olNativeWi
ndow.OnMes
sage(Messa
ge& m)
at System.Windows.Forms.Contr
olNativeWi
ndow.WndPr
oc(Message
& m)
at System.Windows.Forms.Nativ
eWindow.Ca
llback(Int
Ptr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.E
xcel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e
9429c
(Fully-specified)
LOG: Appbase = C:\Documents and Settings\Administrator.TSC
RA_NT\Star
t Menu\Programs\TSCRA401KRep
ort\
LOG: Initial PrivatePath = NULL
Calling assembly : 401KReport.net, Version=1.0.1566.3678, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Fra
mework\v1.
1.4322\con
fig\machin
e.config.
LOG: Post-policy reference: Microsoft.Office.Interop.E
xcel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e
9429c
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator.TSC
RA_NT/Star
t Menu/Programs/TSCRA401KRep
ort/Micros
oft.Office
.Interop.E
xcel.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator.TSC
RA_NT/Star
t Menu/Programs/TSCRA401KRep
ort/Micros
oft.Office
.Interop.E
xcel/Micro
soft.Offic
e.Interop.
Excel.DLL.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator.TSC
RA_NT/Star
t Menu/Programs/TSCRA401KRep
ort/Micros
oft.Office
.Interop.E
xcel.EXE.
LOG: Attempting download of new URL file:///C:/Documents and Settings/Administrator.TSC
RA_NT/Star
t Menu/Programs/TSCRA401KRep
ort/Micros
oft.Office
.Interop.E
xcel/Micro
soft.Offic
e.Interop.
Excel.EXE.
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
--------------------------
----------
----
401KReport.net
Assembly Version: 1.0.1566.3678
--------------------------
----------
----
System.Windows.Forms
Assembly Version: 1.0.5000.0
--------------------------
----------
----
System
Assembly Version: 1.0.5000.0
--------------------------
----------
----
System.Drawing
Assembly Version: 1.0.5000.0
--------------------------
----------
----
System.Data
Assembly Version: 1.0.5000.0
--------------------------
----------
----
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
--------------------------
----------
----
System.Xml
Assembly Version: 1.0.5000.0
**************************
**********
**********
**********
**********
****
This appears to be a versioning issue and if I read this right but I do not seem to be able to locate why. What I need is some help walking through a debug of this deployment issue so I can understand the process and will be able to handle it if it comes up again.....
Any help on this is as you would expect Greatly appreciated.....
Thanks,
Allen
Start Free Trial