Friday, April 16, 2010

Solving the error - NT AUTHORITY\NETWORK SERVICE

Hi folks, I have been dealing with some issues trying to deploy my web application on a Windows Server 2003 with IIS 6.0 server. Luckily for me, the application is now working like a charm, and the solution to the error messages was easier than expected.

After adding my Website and virtual directories in the IIS Manager, I surfed to the default aspx page and got the following 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'.

After hours of looking for a solution on the internet I found the following one:

1.- On the server machine, go to Start

2.- Click run, and type cmd / command in the textbox and run.

3.- Type the following line: c:\Windows\Microsoft.net\framework\v2.0.50727\aspnet_regiis -ga "NT AUTHORITY\NETWORK SERVICE"

Note: You have to be the Administrator or have according rights on the server. Additionally you have to understand the security issues this may brings into the server.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Grants For Single Moms