asp.net security

J

john

I am trying to use the excel.application object from within a asp.net page.
I keep getting access denied on the <machinename>/aspnet account. I have
added this user to every security group on the machine (Adminstrators,
<machinename>/Admins, <machinename>/Authors etc.) as the asp.net error
message suggests.

Why do I keep getting this security error? I am the administrator on the
box.

Any help would be appreciated.
 
K

Ken Cox [Microsoft MVP]

Hey John,

You might want to try this to see if it gets things moving...

In IIS, disable anonymous access and enable Windows integrated authentication.

In your web.config, use impersonation:

<identity impersonate="true" />

This should tell ASPNET to use your authentication when it needs a resource.

It may be that some tasks are still using the IUSR_<machinename> account.

Ken
MVP [ASP.NET]


I am trying to use the excel.application object from within a asp.net page.
I keep getting access denied on the <machinename>/aspnet account. I have
added this user to every security group on the machine (Adminstrators,
<machinename>/Admins, <machinename>/Authors etc.) as the asp.net error
message suggests.

Why do I keep getting this security error? I am the administrator on the
box.

Any help would be appreciated.
 
D

David Pretorius

How does that work in XP

I remember when i first started playing with vb 6.0, i had to play with
dcomcnfg. I am trying to run winfax pro and outlook applications

Regards
Juan Ramon Martinez said:
When faced with the same problem I simply gave the aspnet account specific
permissions to start and run excel. Go to dcomcnfg-> dcom setup-> Microsoft
Excel -> properties -> Security Tab -> add startup and access permissions
for the asp_net account.


Ken Cox said:
Hey John,

You might want to try this to see if it gets things moving...

In IIS, disable anonymous access and enable Windows integrated authentication.

In your web.config, use impersonation:

<identity impersonate="true" />

This should tell ASPNET to use your authentication when it needs a resource.

It may be that some tasks are still using the IUSR_<machinename> account.

Ken
MVP [ASP.NET]


I am trying to use the excel.application object from within a asp.net page.
I keep getting access denied on the <machinename>/aspnet account. I have
added this user to every security group on the machine (Adminstrators,
<machinename>/Admins, <machinename>/Authors etc.) as the asp.net error
message suggests.

Why do I keep getting this security error? I am the administrator on the
box.

Any help would be appreciated.
 

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

Members online

Forum statistics

Threads
474,100
Messages
2,570,635
Members
47,241
Latest member
HumbertoSt

Latest Threads

Top