Article ID: 323293 - View products that this article applies to.
This article was previously published under Q323293
When you search against Index Server through an ASP.NET page, you may receive the following error message:
This behavior is observed only if you enable impersonation for the ASP.NET Web application and if the security context under which the ASP.NET worker process (Aspnet_wp.exe) runs is the ASPNET account.
Access is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: Access is denied.
Service pack informationTo resolve this problem, obtain the latest service pack for Microsoft Windows 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/260910/ )How to obtain the latest Windows 2000 service pack
Use one of the following methods to work around this problem:
To change the security context under which the ASP.NET worker process runs, set the userName attribute to SYSTEM, and then set the Password attribute to autogenerate in the <processModel> section of the Machine.config file. The Machine.config file is located in the C:\Windows Directory\Microsoft.Net\Framework\v1.0.3705\Config folder.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. This bug was corrected in ASP.NET (included with the .NET Framework) 1.1. Microsoft has confirmed that this is a problem in Microsoft Windows 2000. This problem was first corrected in Microsoft Windows 2000 Service Pack 4.
Steps to Reproduce the Behavior
For more information about impersonation in ASP.NET, click the following article number to view the article in the Microsoft Knowledge Base:
306158For more information about the ASP.NET worker process identity, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/306158/ )How to implement impersonation in an ASP.NET application
(http://support.microsoft.com/kb/317012/ )Process and request identity in ASP.NET
Article ID: 323293 - Last Review: July 5, 2006 - Revision: 3.1