|
-
Aug 19th, 2005, 08:45 AM
#1
Thread Starter
Fanatic Member
Microsoft.Office.Interop.Excel
Guys,
I am trying to launch Excel on my server and am getting this error . .
File or assembly name Microsoft.Office.Interop.Excel, or one of its dependencies, was not found.
Full stack trace is below.
How can I get this working ? My server has Excel 2003 installed.
I have <identity impersonate="true"/> in my web.config file.
The code in queston imports these refs ..
Imports System.Data.SqlClient
Imports Microsoft.Office.Interop
Imports Microsoft.Office.Interop.Excel
Imports System.Runtime.InteropServices.Marshal
Any ideas ?
Thanks
Bob
P.S. I've editted this post severly for those that have already read it !
=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
(Fully-specified)
LOG: Appbase = file:///E:/HPT
LOG: Initial PrivatePath = bin
Calling assembly : HPT, Version=1.0.2057.15049, Culture=neutral, PublicKeyToken=null.
===
LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file (C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/b794da6c/efba4805/Microsoft.Office.Interop.Excel.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/b794da6c/efba4805/Microsoft.Office.Interop.Excel/Microsoft.Office.Interop.Excel.DLL.
LOG: Attempting download of new URL file:///E:/HPT/bin/Microsoft.Office.Interop.Excel.DLL.
LOG: Attempting download of new URL file:///E:/HPT/bin/Microsoft.Office.Interop.Excel/Microsoft.Office.Interop.Excel.DLL.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/b794da6c/efba4805/Microsoft.Office.Interop.Excel.EXE.
LOG: Attempting download of new URL file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/root/b794da6c/efba4805/Microsoft.Office.Interop.Excel/Microsoft.Office.Interop.Excel.EXE.
LOG: Attempting download of new URL file:///E:/HPT/bin/Microsoft.Office.Interop.Excel.EXE.
LOG: Attempting download of new URL file:///E:/HPT/bin/Microsoft.Office.Interop.Excel/Microsoft.Office.Interop.Excel.EXE.
Stack Trace:
[FileNotFoundException: File or assembly name Microsoft.Office.Interop.Excel, or one of its dependencies, was not found.]
HPT.HPTReports.btn_excel_Click(Object sender, EventArgs e) +0
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
Last edited by staticbob; Aug 19th, 2005 at 10:51 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|