Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The current identity (NT Authority/Network Service) does not have write access to

Tags:

asp.net

c#-2.0

I developed a simple web application. A label and a button. On click of Button, the label will display Hello World.

When I deploy this web application on my web server and access the URL, I get this error message.

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\

I have tried the following -

Navigate to C:\Windows\Microsoft.NET\Framework\v2.0.50727 and typed the following command -

aspnet_regiis -ga "NT Authority\Network Service"

After that also, it did not work.

We checked the permissions of the folder Temporary ASP.NET Files and for the Network Service user, we checked the Security Permissions and it has all the permissions as required.

like image 987
Muthu Avatar asked Jan 17 '11 07:01

Muthu


People also ask

How do I add permissions to NT Authority?

Right-click on NT AUTHORITY\SYSTEM and select Properties. This opens the Login Properties window. Select Server Roles and from the Server roles list on the right, select sysadmin. Click OK to confirm the roles selected for System account.

What is NT Authority and NT service?

The NT AUTHORITY account is a built in account mostly used to run XP Services. Many XP Services run under the NT AUTHORITY account (it is like a User account but you will not see it in your Users list) and there are different levels for different Services.


1 Answers

This worked for me, didn't try the -ga:

Navigate to

C:\Windows\Microsoft.NET\Framework\v2.0.50727 

and type the following command

aspnet_regiis -i
like image 166
Adam Conlon Avatar answered Oct 19 '22 23:10

Adam Conlon