ASP.Net won't allow Creation of Excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

VB Code
Dim xlApp As Microsoft.Office.Interop.Excel.Application

'Open Excel Application
xlApp = CreateObject("Excel.Application") ' ***** Blows up here
*****

Error Exception Details
System.Exception: Cannot create ActiveX component.

Stack
 
Yes it is installed.

How can I get ASP.Net to recognize it and open it? (specifics are very
helpful, as I am not a guru with security, etc.)

Thanks
Mark
 
From the error you got it does not seem to be a security problem. I would
suspect Excel not being correctly registered. Are you able to create an Excel
object from a normal winform application running on the machine where the web
server is installed?

--
Rgds,
Anand
VB.NET MVP
http://www.dotnetindia.com
 
Take a look at the NTFS permissions on the directory with excel.exe in it.
I suspect the ASP login doesn't have privs to this directory. I ran into
similar problems with straight ASP and that was the solution.

Mike Ober.
 
Back
Top