WebControls error in an application running under an impersonate identity

From: Alex Muntean (munteana@ewc.co.jp)
Date: 11/27/02


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.



Relevant Pages

  • please help ::: .NET TreeView control exploded in my face :-o
    ... I wrote an application to display basic information in a small ... family-tree database. ... to display the folder hierarchy in its left-pane, ... Can anyone suggest a treeview control for VC++ .NET 2003 ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: TreeView Control
    ... contains 6 standard modules, 3 class modules and 1 form. ... When I'm in Windows Explorer and I need to go for instance into VB98 folder ... I would like to open VB98 folder located in TreView control programmatically ... If I for instance could have a property of TreeView control called ...
    (microsoft.public.vb.general.discussion)
  • Treeview node select
    ... Is there a way to get the treeview control to recognize that a node is selected when using checkboxes? ... What I'm trying to do is build a browse for folder control where the user can select multiple folders using checkboxes. ... (i.e. if they check the box for a root folder, it will automatically select all subfolders, but allow them to de-select individual ones). ...
    (microsoft.public.vb.winapi)
  • drag & drop from CCRP Treeview control?
    ... Does anyone have a sample of drag and drop code that works with the CCRP ... Treeview control? ... I want to drag a folder (and it's sub ...
    (microsoft.public.vb.general.discussion)
  • Re: LaTeX2rtf not running
    ... Cannot execute C:\PROGRA~1\LATEX2RTF\LATEX2RT.EXE ... Please cite exactly the complete error message ... Same applies to the folder "MiKTeX 2.5". ... that eliminates the possibility of elaborated user access rights to ...
    (comp.text.tex)