Error: Access is Denied: Microsoft.Web.UI.Webcontrols
"=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.UI.Webcontrols, Version= 1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///D:/WebPortal
LOG: Initial PrivatePath = bin
Calling assembly : NST, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: Attempting download of new URL
file:///c:/Windows/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/abc/15b74bf1/7d24a7c4/Microsoft.Web.UI.WebControls.DLL.
Solution 1: I read from a Microsoft KB article that this could happen because of some issue with Index server! So if at all Index server is running unnecessarily either try stopping it or disable it.
Solution 2: In the web.config file if the tag identity impersonate="true" is added, remove it and see. [Don't ask me why :)]
The second solution was found my friend Sriram and the problem got resolved. Hope this would help someone some day :)
Technorati Tags: Microsoft
"=== Pre-bind state information ===
LOG: DisplayName = Microsoft.Web.UI.Webcontrols, Version= 1.0.2.226, Culture=neutral, PublicKeyToken=31bf3856ad364e35
(Fully-specified)
LOG: Appbase = file:///D:/WebPortal
LOG: Initial PrivatePath = bin
Calling assembly : NST, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: Attempting download of new URL
file:///c:/Windows/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/abc/15b74bf1/7d24a7c4/Microsoft.Web.UI.WebControls.DLL.
Solution 1: I read from a Microsoft KB article that this could happen because of some issue with Index server! So if at all Index server is running unnecessarily either try stopping it or disable it.
Solution 2: In the web.config file if the tag identity impersonate="true" is added, remove it and see. [Don't ask me why :)]
The second solution was found my friend Sriram and the problem got resolved. Hope this would help someone some day :)
Technorati Tags: Microsoft
Comments
The problem was indeed that I was using impersonation, but my App requires this.
All I needed to do was add the user that I was impersonating to the ACL for the
%windir %\Microsoft.NET\Framework\version \Temporary ASP.NET files with write and modify access.
You can make this more secure (if required) by only adding the user to the ACL for the subdirectory of your web app.