The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access

192
Views
1
Answers

Hi,
I get the following error when I try to run a .Net application.

The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'D:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\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 'D:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\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 'D:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'.]
System.Web.HttpRuntime.InitFusion() +3481615
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +158

[HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'D:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3427591
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +147

Any suggestion would be greatly appreciated..

edit | flag
William Patrick
Asked on: Oct 11, 2011 at 12:26AM

1 Answers

65
3
65

You can grant access to this account explicitly using the aspnet_regiis -ga switch, for example:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215>aspnet_regiis -ga "NT Authority\Network Service"

or

Add NETWORK SERVICE in the Permissions.

Hope this helps!!

edit | flag
Gokul A
Answered on: Oct 11, 2011 at 1:12AM

Post your Answer

Search

Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags