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.