You might see the following error trying to run ASP.NET web applications from Web Active Directory.
System.InvalidOperationException: Unable to generate a temporary class (result=1)
This error typically is caused by a permissions issue on the Temp folder used to host compiled .NET assemblies at run time. Check the permissions for the NTAUTHORITY\NETWORK SERVICE account on the TEMP folder for .NET.
To resolve this issue, assign NETWORK SERVICE (or whatever account your web application is using) the following permissions on C:\Windows\Temp (or the temp folder location on your system).
•List Folder / Read Data
This error also typically indicates a bigger problem with ASP.NET so you should check to ensure you installed and registered ASP.NET properly as noted below: