Impersonation in Web.Config

  • Thread starter Thread starter DotNet User
  • Start date Start date
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
 
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.
 
Back
Top