Error Unable to Generate Temporary Class

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

I encountered this error when I was trying to access the DotNetNuke Host Settings page.

I found the error CS2008 issue was related to the user account assigned to the directory and the permissions configured.

To set the permissions and account for the temporary directory:

  1. Navigate to the directory C:\Windows and right click on the Temp folder.
  2. Open the Security tab
  3. Click Add
  4. Click Advanced
  5. Click Find Now
  6. Select IWAM_YourMachineName
  7. Ensure that the account has at least the read/write and modify rights