Re: WebControls error in an application running under an impersonate identity
From: Larry Hastings (greg.NOSPAM.@NOSPAM.unixsucks.com)
Date: 11/27/02
- Next message: rajneesh: "Impersonation"
- Previous message: Larry Hastings: "Re: Windows Authentication issue"
- In reply to: Alex Muntean: "WebControls error in an application running under an impersonate identity"
- Next in thread: Alex Muntean: "Re: WebControls error in an application running under an impersonate identity"
- Reply: Alex Muntean: "Re: WebControls error in an application running under an impersonate identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Larry Hastings" <greg.NOSPAM.@NOSPAM.unixsucks.com> Date: Wed, 27 Nov 2002 09:35:03 -0600
I use System account for running aspnet_wp.exe (changed in machine.config)
which gives process broader permissions on local machine but enables you to
do cool stuff like authenticated as Machine account in SQL database, so
you'd need to store username and password anywhere in config files. Also
local system account is automatically part of local administrators group.
-- G http://www.unixsucks.com "Alex Muntean" <munteana@ewc.co.jp> wrote in message news:#JzU3AblCHA.1824@tkmsftngp04... > I installed the latest Microsoft.Web.UI.WebControls and I successfully built > several test samples using the TreeView control. Then I tried to add the > TreeView control to my own application which has to run under a domain > account used for connection to the SQL Server, but when I access the page > where the TreeView control resides I get the following error: > > "CS0009: Metadata file > 'C:\WINDOWS\assembly\GAC\Microsoft.Web.UI.WebControls\1.0.2.226__31bf3856ad3 > 64e35\Microsoft.Web.UI.WebControls.dll' could not be opened -- 'Access is > denied.'" > > I thought that the account the application is running under doesn't have > enough rights in the %windir%/assembly folder. And because that folder is a > protected OS folder the only way to give it Read rights was using: "cacls > %windir%\assembly /e /t /p Domain\UserName:R" This gave Read rights to that > user but I was getting the same error message. > > Eventually I made the user a member of the Administrators group but not even > that didn't solve the problem. > Any suggestions will be greatly appreciated. > > From Web.config: > <authentication mode="Windows" /> > <identity impersonate="true" userName="Domain\UserName" password="***" /> > > Thank you, > .a. > >
- Next message: rajneesh: "Impersonation"
- Previous message: Larry Hastings: "Re: Windows Authentication issue"
- In reply to: Alex Muntean: "WebControls error in an application running under an impersonate identity"
- Next in thread: Alex Muntean: "Re: WebControls error in an application running under an impersonate identity"
- Reply: Alex Muntean: "Re: WebControls error in an application running under an impersonate identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|