Server Error in ‘/’ Application. Access to the path … is denied

Error Scenario

You try to log on to a Windows SharePoint Services website and receive the message:

Error: Server Error in ‘/’ Application.
Access to the path “C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\…\…” is denied.

What Cause the Error

The Network Service group does not have sufficient security permissions to the Temporary ASP.NET folder.

Error Resolution

1. click Start -> Run -> type cmd -> OK.
2. In command prompt type: “cd Drive(where is installed .NET Framework 2.0):\WINDOWS\Microsoft.NET\Framework\v2.0.50727”
3. Execute the command: “aspnet_regiis -ir”.