"Error While Trying to Run Project" Error Message Occurs When You Debug a Web Application in Visual Studio .NET (821255)
The information in this article applies to:
- Microsoft Windows 2000 Server SP4
- Microsoft Windows 2000 Advanced Server SP4
- Microsoft Windows 2000 Professional SP4
SYMPTOMSWhen you create a Web application in Microsoft Visual Studio .NET and then press F5 to debug the application, you may receive the following error message: Error while trying to run project: Unable to start debugging on the Web server. Access is denied. Would you like to disable future attempts to debug ASP.NET pages for this project? CAUSEThis issue occurs if the account that is used to run the ASP.NET Worker process (by default, the ASPNET user account) is not assigned the "Impersonate a client after authentication" user right in the Local Security Policy settings. This issue may occur when you install Microsoft Visual Studio .NET after you install Windows 2000 Service Pack 4 (SP4) on the computer. In this situation, the ASPNET account is not assigned the "Impersonate a client after authentication" user right in the Local Security Policy settings.
The "Impersonate a client after authentication" user right (also named SeImpersonatePrivilege) is a new Windows 2000 security setting that was first included in Windows 2000 SP4. For more information about the new security settings introduced in Windows 2000 SP4, including the "Impersonate a client after authentication" user right, see the "More Information" section later in this article.WORKAROUNDTo work around this issue, assign the "Impersonate a client after authentication" user right to the ASPNET account in the Local Security Policy settings: - Click Start, point to Programs, point to Administrative Tools, and then click Local Security Policy.
- Double-click Local Policies, and then click User Rights Assignment.
- In the right pane, double-click Impersonate a client after authentication.
- In the Local Security Policy Setting dialog box, click Add.
- In the Select Users or Group dialog box, click ASPNET, click Add, and then click OK.
- Click OK.
Modification Type: | Major | Last Reviewed: | 6/20/2003 |
---|
Keywords: | kbnofix kbBug KB821255 kbAudEndUser kbAudITPRO kbAudOEM kbAudDeveloper |
---|
|