Article ID: 810204 - Last Review: July 11, 2005 - Revision: 3.5 PRB: Per Request Impersonation Does Not Work on Windows 2000 with ASP.NETOn This PageSYMPTOMSWhen an ASP.NET application impersonates a specific user by
providing credentials as specified in the Web.config configuration file, you
receive the following error message in Windows 2000:
Server Error in '/WebApplication2' Application Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'A required privilege is not held by the client.' Source Error: Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0 CAUSEThis error occurs when you enable impersonation for a
specific user identity. ASP.NET tries to generate an access token by calling
the LogonUser Win32 API .To call LogonUser in Windows 2000, the process owner must have the SE_TCB_NAME (To
Act as Part of the Operating System) user right. The ASPNET account has the
least user rights and does not possess the SE_TCB_NAME user right.
STATUS This
behavior is by design. MORE INFORMATIONYou can still impersonate the Microsoft Internet Information
Services (IIS) authenticated user identity without using the extended form of
impersonation. The following code sets impersonation to either the IIS
authenticated user or the anonymous Internet user account: Microsoft recommends that you do not grant the SE_TCB_NAME user right to the ASPNET account because this violates the principle of running with the least user rights necessary. When an account has this user right, the user can perform activities such as create new accounts, add accounts to the Administrators group, and debug memory. Steps to Reproduce the Behavior
REFERENCES For additional information, click the
following article numbers to view the articles in the Microsoft Knowledge Base:
329290
(http://support.microsoft.com/kb/329290/EN-US/
)
HOW TO: Use the ASP.NET Utility to Encrypt Credentials and Session State Connection Strings
306158
(http://support.microsoft.com/kb/306158/EN-US/
)
INFO:
Implementing Impersonation in an ASP.NET Application
| Article Translations
|
Back to the top
