Ask a Question related to ASP.NET Security, Design and Development.
-
Marc Wuergler #1
Impersonation problem
Hi !
I'm trying to secure my web application using impersonation within the
web.config file as follows :
<identity impersonate="true"
userName="MyMachine\MyUser"
password="MyPassword" />
This gives me the error : Access to
"C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
Files\webtests\5586467f\285b6247\hash.web" denied ...
If I do the same using a user of the domain, then it works ...
<identity impersonate="true"
userName="MyDomain\DomainUser"
password="MyPassword" />
Any idea about what I'm doing wrong ?
Of course, once this is working, I'm planning to encrypt this using
aspnet_setreg.exe and the following web.config entry :
<identity impersonate="true"
userName="registry:HKLM\SOFTWARE\MyApp\identity\AS PNET_SETREG,userName"
password="registry:HKLM\SOFTWARE\MyApp\identity\AS PNET_SETREG,password" />
Again ... this works with my domain user, but not with the local user
defined on my machine. By the way, my local user has full control on the web
application folder
Thanks for your help
Marc Wuergler Guest
-
Impersonation problem.
When I enable impersonation in web.config and show User identity in .aspx page, it is the user IIS authenticates. But when I try to access Sql... -
IsolatedStorage with impersonation in ASP.NET problem
Hi, I have an ASP.NET application. I want to use IsolatedStorage in this application. When I run this application with anonymous access set in IIS... -
problem with impersonation using LogonUser
Hello All This is what I am tring to do: I have some folders shared for specific users on network. Now from my web appl I have to access them.... -
HttpWebRequest, impersonation and DefaultCredentials problem.
I'm trying to create a HttpWebRequest object that uses the current logged in user's credentials. It's currently setup with: <identity... -
Problem with Impersonation
I recently installed Active Directory on my webserver (yeah people say it's a bad idea but I had no other choice). Now when I access a web app with... -
Raterus #2
Re: Impersonation problem
The user you are impersonating with doesn't have access to "C:\winnt\microsoft.net\framework\v1.1.4322\tempor ary asp.net files", you must give them NTFS permissions to access this directory.
"Marc Wuergler" <marc_wurgler@hotmail.com> wrote in message news:eMQONuDhEHA.3428@TK2MSFTNGP11.phx.gbl...> Hi !
>
> I'm trying to secure my web application using impersonation within the
> web.config file as follows :
>
> <identity impersonate="true"
> userName="MyMachine\MyUser"
> password="MyPassword" />
>
> This gives me the error : Access to
> "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
> Files\webtests\5586467f\285b6247\hash.web" denied ...
>
> If I do the same using a user of the domain, then it works ...
>
> <identity impersonate="true"
> userName="MyDomain\DomainUser"
> password="MyPassword" />
>
> Any idea about what I'm doing wrong ?
>
>
> Of course, once this is working, I'm planning to encrypt this using
> aspnet_setreg.exe and the following web.config entry :
> <identity impersonate="true"
> userName="registry:HKLM\SOFTWARE\MyApp\identity\AS PNET_SETREG,userName"
> password="registry:HKLM\SOFTWARE\MyApp\identity\AS PNET_SETREG,password"/>
>
> Again ... this works with my domain user, but not with the local user
> defined on my machine. By the way, my local user has full control on the web
> application folder
>
> Thanks for your help
>
>Raterus Guest
-
Marc Wuergler #3
Re: Impersonation problem
Thanks a lot ... it works fine now
"Raterus" <moc.liamtoh@suretar.reverse> a écrit dans le message de
news:%232VAFKGhEHA.3236@TK2MSFTNGP10.phx.gbl...
The user you are impersonating with doesn't have access to
"C:\winnt\microsoft.net\framework\v1.1.4322\tempor ary asp.net files", you
must give them NTFS permissions to access this directory.
"Marc Wuergler" <marc_wurgler@hotmail.com> wrote in message
news:eMQONuDhEHA.3428@TK2MSFTNGP11.phx.gbl...web> Hi !
>
> I'm trying to secure my web application using impersonation within the
> web.config file as follows :
>
> <identity impersonate="true"
> userName="MyMachine\MyUser"
> password="MyPassword" />
>
> This gives me the error : Access to
> "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
> Files\webtests\5586467f\285b6247\hash.web" denied ...
>
> If I do the same using a user of the domain, then it works ...
>
> <identity impersonate="true"
> userName="MyDomain\DomainUser"
> password="MyPassword" />
>
> Any idea about what I'm doing wrong ?
>
>
> Of course, once this is working, I'm planning to encrypt this using
> aspnet_setreg.exe and the following web.config entry :
> <identity impersonate="true"
> userName="registry:HKLM\SOFTWARE\MyApp\identity\AS PNET_SETREG,userName"
> password="registry:HKLM\SOFTWARE\MyApp\identity\AS PNET_SETREG,password" />
>
> Again ... this works with my domain user, but not with the local user
> defined on my machine. By the way, my local user has full control on the> application folder
>
> Thanks for your help
>
>
Marc Wuergler Guest



Reply With Quote

