Can't instantiate Excel app object in ASP.net app (permissions issue)

Can't instantiate Excel app object in ASP.net app (permissions issue)

Post by Ronald S. » Fri, 17 Feb 2006 05:36:44


The following line in my ASP.NET 2.0 app will not execute because of a
permissions issue.

Excel.Application objApplication = new Excel.Application();

How/where do I make the setting to allow this?



Thanks,

Ron
 
 
 

Can't instantiate Excel app object in ASP.net app (permissions issue)

Post by Willy Deno » Fri, 17 Feb 2006 05:56:50


| The following line in my ASP.NET 2.0 app will not execute because of a
| permissions issue.
|
| Excel.Application objApplication = new Excel.Application();
|
| How/where do I make the setting to allow this?
|
|
|
| Thanks,
|
| Ron
|
|

You have to grant the asp.net user (the user under witch asp.net runs)
"launch" and "access" permissions for excel (run dcomncfg), by default this
user is "aspnet" or "network service" depending on the type of OS (XP/W2K or
W2K3).
Note also that excel (like all other office applications) aren't designed to
run from asp or any other server like application, and it's not supported
either. Be prepared to encounter a lot of problems.

Willy.