Hello,
I am experiencing an unprecedented problem... my company has several Web
servers. one of them is Win 2003 Server and another win 2000 adv server both
used for web production
the past few days we've experience an unusual problem to our perpective:
We keed getting Access denied for any ASP.NET page we try to run.
I even created a basic ASP.NET app site using Vstudio .net 2003 which create
a simple webform1.aspx when I run it... I get access denied with a lot of
errors shown below:
Any ideas? I went as far as giving ASPNET and "Network Service" read and
execute permission to these directories explicitly... I never had to do that
before... No major changes happened on the Server... I only apply some
Windows UPdates through the standard Windows Update feature... the same
thing happen on the win 2000 server
Please help...
************* error output from web server Win20003 *******
Access to the path "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary
ASP.NET Files\easynetsoft\9164bff3\b6e40b67" is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\easynetsoft\9164bff3\b6e40b67" is denied.
ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user (typically
IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET write access to a file, right-click the file in Explorer,
choose "Properties" and select the Security tab. Click "Add" to add the
appropriate user or group. Highlight the ASP.NET account, and check the
boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[UnauthorizedAccessException: Access to the path
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET
Files\easynetsoft\9164bff3\b6e40b67" is denied.]
System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
System.IO.Directory.InternalCreateDirectory(String fullPath, String path)
+632
System.IO.Directory.CreateDirectory(String path) +195
System.Web.Compilation.PreservedAssemblyEntry.DoFirstTimeInit(HttpContext
context) +85
System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext
context) +97
System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext
context, String virtualPath, Boolean fApplicationFile) +29
System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation()
+91
System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean
fCreateIfNotFound) +148
System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() +125
System.Web.UI.TemplateParser.GetParserCacheItem() +88
System.Web.UI.ApplicationFileParser.GetCompiledApplicationType(String
inputFile, HttpContext context, ApplicationFileParser& parser) +171
System.Web.HttpApplicationFactory.CompileApplication(HttpContext context)
+43
System.Web.HttpApplicationFactory.Init(HttpContext context) +485
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext
context) +170
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +414
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
Andy Mortimer [MS] - 20 Oct 2004 14:21 GMT
Hi,
Resolution
============
Method 1 (preferred):
1. Click Start, and then click Run.
2. In the Open box, type "cmd", and then click OK.
3. Switch to the Drive :\Windows\Microsoft.Net\Framework\v1.1.4322 folder,
where
Drive is the drive where Windows is installed. To do so, type the following
line at
the command prompt, where Drive is the drive where Windows is installed,
and then
press ENTER:
cd Drive :\windows\microsoft.net\framework\v1.1.4322
Add the appropriate permissions to the Network Service group for the
Temporary
ASP.NET Files folder. To do so, type the following line, and then press
ENTER:
aspnet_regiis -i
Type "exit", and then press ENTER to quit the command prompt.
Method 2:
Add Local Service and Network Service account Read & Execute, List Folder
Contents,
and Read permissions to %windir%\Microsoft.NET\Framework\v1.1.4322.
Add Local Service and Network Service account Full Control permission to
%windir%\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files.
This will allow Backup and Monitoring folders under "Temporary ASP.NET
Files"
folder to have full control for Local Service and Network Service.
Related articles:
823379 "Server Error in '/' Application. Access to the Path <Path> Is
Denied"
http://support.microsoft.com/default.aspx?scid=KB;EN-US;823379
818486 XCCC: "Server Error in '/OMA' Application" Error Message When You
View
http://support.microsoft.com/default.aspx?scid=KB;EN-US;818486
Andy Mortimer [MS]
Please do not send email directly to this alias. This alias is for
newsgroup purposes only
This posting is provided "AS IS" with no warranties, and confers no rights.
OR if you wish to include a script sample in your post please add "Use of
included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm"
Simon - 20 Apr 2005 14:29 GMT
I had this problem also and after a day or two of head-scratching, I
realized the error message is misleading. Here is what I found in case it
helps someone else.
Although the error message says that access to "Temporary
ASP.NET" is denied, it turned out that the problem was lack of access to C:\
WINDOWS\Temp.
Granting access for NETWORK_SERVICE to C:\WINDOWS\Temp fixed the problem
for me.
Hope that helps.
Simon