ASP.Net won't allow Creation of Excel

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
 
G

Guest

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
 
G

Guest

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
 
M

Michael D. Ober

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top