Reader Level:
Articles

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

By Mahesh Chand on May 03, 2012
You get this error when you try to open an ASP.NET website.
  • 1
  • 0
  • 10275

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


You get this error when default Network service does not have permissions on the IIS website. 

Error looks like this.

NTError1.png

This can be fixed by allowing access using aspnet_regiis - ga like this:

c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -ga "NT Authority\Network Service"

Go to command prompt. Go to the respective directory and run the command. You should see Start granting command message.

NTerror.png

Cheers!

Mahesh Chand

C# Corner founder, 10-times Microsoft MVP, technical author, and software architect. Mahesh authored his first book, A Programmer’s Guide to ADO.NET in C# with APress at the age of 25. C# Corner is a memb... Read more

COMMENT USING