“Unable to generate a temporary class” error

  1. Home
  2. Knowledge Base
  3. PeopleSearch
  4. “Unable to generate a temporary class” error
  1. Home
  2. Knowledge Base
  3. PeopleUpdate
  4. “Unable to generate a temporary class” error
  1. Home
  2. Knowledge Base
  3. PeopleProvision
  4. “Unable to generate a temporary class” error
  1. Home
  2. Knowledge Base
  3. PeoplePassword
  4. “Unable to generate a temporary class” error
  1. Home
  2. Knowledge Base
  3. PeopleNexus
  4. “Unable to generate a temporary class” error
  1. Home
  2. Knowledge Base
  3. IISADMPWD Replacement
  4. “Unable to generate a temporary class” error

You might see the following error in your Application event log when trying to run a Web Active Directory web application.

Unhandled exception caught in Application_Error handler in Global.asax.

Exception occurred in System.Xml: Unable to generate a temporary class (result=1).
error CS2001: Source file ‘C:\Windows\TEMP\tjb22ev9.0.cs’ could not be found
error CS2008: No inputs specified

This error is caused by a permissions problem with the NTFS ACL. To resolve it, add the application pool account for the Web Active Directory web application (typically the Network Service account) to the NTFS ACL on the C:\Windows\TEMP directory and give the account Modify permissions. Then run the web application again and make sure it compiles and runs correctly.

You can then try to remove the application pool service account from the NTFS ACL and the application will continue to run. If not, then add the account back to the ACL.

Was this article helpful?

Related Articles

Sign in
classic
Forgot password?
×
Sign up

(*) Required fields

I agree with OptimaSales Terms & Privacy Policy

×