Impersonation in Web.Config

D

DotNet User

Hi
I am getting Access Denied error on c:\windows\assembly, when i
impersonate a user in web.config. I am running windows XP
professional. I have given full control for the impersonating user on
this folder. If I impersonate the same user from machine.config
(aspnet_wp) everything seems to be working fine. But when i change the
machine.config to default(user=machine password=AutoGenerate) and
Impersonate the user through WEB.CONFIG I get this error. I have seen
many posts about this error but have found no solution apart from no
impersonating and changing the user to system in machine.config.
If anyone has a solution or can shed more light on this, it will be
very helpful.

Thanks
 
K

Kevin Spencer

A quick way to find out whether or not your ASP.Net app is truly
impersonating is to open Task Manager and see the account name under which
the ASP.Net process is running. In Windows XP and previous, the process will
be named aspnet_wp.exe. In Windows Server 2003, the process will be called
w3wp.exe.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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

Similar Threads

Access Denied 0
Impersonation 1
Impersonation 6
Impersonation 0
Impersonation issue 1
Impersonation? 1
ASP.NET impersonation - getfiles() problem 8
impersonation 3

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top