Re: How do I fix this error: "The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to "

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 10/17/05


Date: Mon, 17 Oct 2005 06:46:26 -0700

Hello TheBurgerMan,

this is the directory where ASP.NET emits its temp assemblies - the worker
process account needs modify ACLs for this directory (and sub directories).

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Hi all. I am using W2K3, .NET2 on a machine running AD and Exchange.
> I started getting the message below last week. I googled the error
> and not much was returned, but I did find this;
> http://forums.asp.net/918725/ShowPost.aspx
>
> I tried both items in the forum and it works for a few hits then it
> happens again!
>
> Anyone have the same problem? How do I fix this?
>
> Server Error in '/' Application.
> ----------------------------------------------------------------------
> ----------
> The current identity (NT AUTHORITY\NETWORK SERVICE) does not have
> write
> access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary
> ASP.NET
> Files'.
> 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.Web.HttpException: The current identity (NT
> AUTHORITY\NETWORK SERVICE) does not have write access to
> 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files'.
>
> 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:
>
> [HttpException (0x80004005): The current identity (NT
> AUTHORITY\NETWORK
> SERVICE) does not have write access to
> 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files'.]
> System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection
> compilationSection) +3473131
> System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags
> hostingFlags)
> +226
> [HttpException (0x80004005): The current identity (NT
> AUTHORITY\NETWORK
> SERVICE) does not have write access to
> 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
> Files'.]
> System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
> +3425571
> System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
> +88
> System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
> +149
> ----------------------------------------------------------------------
> ---------- Version Information: Microsoft .NET Framework
> Version:2.0.50727.26; ASP.NET Version:2.0.50727.26
>



Relevant Pages

  • RE: Remote Access Error
    ... An unhandled exception occurred 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. ... System.Web.Compilation.PreservedAssemblyEntry.EnsureFirstTimeInit(HttpContext context) +98 ...
    (microsoft.public.windows.server.sbs)
  • RE: Remote Access Error
    ... execution of the current web request. ... >An unhandled exception was generated during the execution ... using the exception stack trace below. ... meInit(HttpContext context) +98 ...
    (microsoft.public.windows.server.sbs)
  • Re: ERROR:Crystal Reports - Logon failed.
    ... An unhandled exception occurred during the execution of the ... > current web request. ... > exception can be identified using the exception stack trace below. ... > CrystalDecisions.Shared.TableLogOnInfo myLogin; ...
    (microsoft.public.dotnet.general)
  • Re: Server Error in / Application.
    ... The error looks like it could be coming from the unsupported MS Treeview ... An unhandled exception occurred during the execution of the ... > current web request. ... > be identified using the exception stack trace below. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Error problem: asp.net app trying to reference local file?
    ... An unhandled exception occurred during the execution of the ... current web request. ... can be identified using the exception stack trace below. ... sourceControl, String eventArgument) +18 ...
    (microsoft.public.dotnet.framework.aspnet)