Re: NT AUTHORITY\Network Service can't write to .NET Directory?



Well - you really shouldn't do that...and it is also not necessary.

This directory is used by ASP.NET to temporarily store the compiled pages. The worker process account needs modify privileges on that IIRC..

-----
Dominick Baier (http://www.leastprivilege.com)

Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)

Hi

An addition to my IWA query really - the sysadmin had promoted the web
server to a domain controller, and it *seems* to be letting us into
the Intranet app, but it's throwing the following error...

I wonder if some could explain what it's trying to do, and how to fix
it?

Ta, Dan.

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) +3482379
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)
+3435007
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
+88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
+252


.



Relevant Pages

  • Re: Updated info
    ... 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. ... We've opened ports 443 and 4125 in the Netopia router but still can't get a RWW logon prompt. ...
    (microsoft.public.windows.server.sbs)
  • Re: ASP.NET 2.0 Web Page Problem?
    ... Based on the stack trace you've shown the problem is when the Operations_HBMBlockStatus page's Repeater1 ItemCreated event is being raised. ... You sister site might be hiding the exception by logging it or ignoring them somehow, I'd need to see the code to say for sure. ... I have obtained a scripted database and compiled ASP.NET 2.0 application from a sister site that I'm trying to implement locally. ... An unhandled exception occurred during the execution of the current web request. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: hexadecimal value 0x01, is an invalid character
    ... An unhandled exception occurred during the execution of the ... > current web request. ... > exception can be identified using the exception stack trace below. ... > postDataKey, NameValueCollection values) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: yes my first web application with database :)
    ... Well I also tried to get the Bdp version working. ... An unhandled exception occurred during the execution of the ... current web request. ... exception can be identified using the exception stack trace below. ...
    (borland.public.delphi.language.objectpascal)
  • system.web.mail.StmpMail problem
    ... SmtpMail.Sendit throws this exception: ... the current web request. ... Please review the stack trace for more ...
    (microsoft.public.dotnet.framework.aspnet)