WebControls error in an application running under an impersonate identity
From: Alex Muntean (munteana@ewc.co.jp)
Date: 11/27/02
- Next message: nu-k-ar: "Re: HELP PLEASE The request failed with HTTP status 401: Access Denied."
- Previous message: Todd Meynink: "Restricting cookie transmission with Forms Authentication to particular pages"
- Next in thread: Larry Hastings: "Re: WebControls error in an application running under an impersonate identity"
- Reply: Larry Hastings: "Re: WebControls error in an application running under an impersonate identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Alex Muntean" <munteana@ewc.co.jp> Date: Wed, 27 Nov 2002 09:57:37 +0900
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: nu-k-ar: "Re: HELP PLEASE The request failed with HTTP status 401: Access Denied."
- Previous message: Todd Meynink: "Restricting cookie transmission with Forms Authentication to particular pages"
- Next in thread: Larry Hastings: "Re: WebControls error in an application running under an impersonate identity"
- Reply: Larry Hastings: "Re: WebControls error in an application running under an impersonate identity"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|