VB .NET 2005 (ASP.NET); Excel Interop 11 (Excel 2003); Windows 2003
I've got an app that needs to use the Excel Interop to generate a spreadsheet. This works great on my machine. :)
When I put the page on the server, I get a COM access exception. When I look in the registry, the COM id matches the Excel interop id in the DCOM tree in Component Services. Through Component Services, I have given both the ASPNET user and the guest internet use full permissions to the DCOM object. I've also done the same through explorer for Excel.exe.
The stack trace is:
[UnauthorizedAccessExcepti
on: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-0
0000000004
6} failed due to the following error: 80070005.]
ExcelHelper.FormatWorkshee
t(String fileName, String lineNumber, Int32 rowCount) +35
ExcelHelper.GenerateWorkDo
cument(Str
ing templateName, String fileName, Int32 lineId) +221
Secure_ViewWorkTickets.Pag
e_Load(Obj
ect sender, EventArgs e) +97
System.Web.UI.Control.OnLo
ad(EventAr
gs e) +98
System.Web.UI.Control.Load
Recursive(
) +71
System.Web.UI.Page.Process
RequestMai
n(Boolean includeStagesBeforeAsyncPo
int, Boolean includeStagesAfterAsyncPoi
nt) +4310
Any suggestions as to what I might be doing wrong?
Start Free Trial