When you receive an error as below
Unable to generate a temporary class (result=1). error CS2001: Source file ‘C:\WINDOWS\TEMP\filename.cs’ could not be found error CS2008: No inputs specified
This is because the ASPNET and application pool do not have privilege in C:\WINDOWS\Temp. Add it like below, then done.
1) Right click the temp folder à Select properties
2) Go to security tab
3) Click on Add and add ASPNET account.
4) Then add one more account IWAM_YourMachineName
5) Try running the ASP page again. The page should run without any error.