Error message when ASP.NET 2.0 is configured to run with a user account: "Unable to generate a temporary class" (908158)
The information in this article applies to:
- Microsoft .NET Framework 2.0
SYMPTOMSConsider 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
CAUSEThis issue occurs if the user account does not have the
List Folder Contents and Read permissions on the %windir%\Temp
folder.RESOLUTIONTo resolve this issue, grant the user account the List
Folder Contents and Read permissions on the %windir%\Temp folder.
Modification Type: | Major | Last Reviewed: | 1/23/2006 |
---|
Keywords: | kbtshoot kberrmsg kbcode kbprb KB908158 kbAudDeveloper |
---|
|