Unable to generate a temporary class
Rating: 0 user(s) have rated this article
Posted by: admin, on 7/11/2009, in category "MS .NET"
Views: this article has been read 1356 times
Location: Crest Hill, IL, United States
Abstract: Error message when ASP.NET 2.0 is configured to run with a user account: "Unable to generate a temporary class"

Symptoms

Consider the following scenario:

  • You create a Microsoft ASP.NET 2.0 application.
  • ASP.NET 2.0 is configured to run with a user account.
  • The SerializeAs attribute of the Profile property in ASP.NET 2.0 is set to Xml.

In this scenario, ASP.NET 2.0 may not save the user profile, and you may receive an error message that is similar to the following:

[InvalidOperationException: Unable to generate a temporary class (result=1).
error CS2001: Source file 'D:\WINDOWS\TEMP\d0lurtzx.0.cs' could not be found
error CS2008: No inputs specified
 
Cause
 
This issue occurs if the user account does not have the List Folder Contents and Read permissions on the %windir%\Temp folder.
 
Resolution
 
To resolve this issue, grant the user account the List Folder Contents and Read permissions on the %windir%\Temp folder.
 
 


How would you rate this article?

User Feedback

Post your comment
Name:
E-mail:
Comment:
Insert Cancel
Select Theme

Theme:

Account Login
 
 
 
Shopping Cart

Your cart is currently empty.

Order History
Announcements

Website is currently under construction. Please check back soon!


Maintenance Schedule
Advertisements
Newsletter
Register to the site for free, and subscribe to the newsletter. Every month you will receive new articles and special content not available elsewhere on the site, right into your e-mail box!

Archived Newsletters
Poll of the week
Navigation Control
More Polls