In some rare cases, the NETWORK SERVICE or ASPNET account, which is used to execute the ITP/OnLine ASP.NET Application, has insufficient permissions, which results in an error message like: "The current identity does not have write access to "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files." This can be solved by granting the necessary permissions using the ASP.NET IIS Registration Tool (aspnet_regiis.exe), which is installed with Microsoft .NET Framework 2.0.
Using aspnet_regiis.exe with the -ga switch followed by the account name, grants the following permissions to the specified account:
The -ga switch makes a number of global changes. If you want to restrict access to specific folders, manually adjust the permissions on those folders. For more information on the ASP.NET IIS Registration Tool, refer to the Microsoft documentation at MSDN.
Use the following command to grant the necessary permissions:
aspnet_regiis.exe -ga "<NETWORK SERVICE or ASPNET>"