FIX: DirectoryOperationException exception when you use the ActiveDirectoryMembershipProvider class in an ASP.NET 2.0 application: "The server cannot handle directory requests

Article translations Article translations
Article ID: 969876 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

You use the System.Web.Security.ActiveDirectoryMembershipProvider class in an ASP.NET 2.0 application to provide membership services by using an Active Directory server or an Active Directory Application Mode (ADAM) server. However, you receive an exception that resembles the following:
Exception type: System.DirectoryServices.Protocols.DirectoryOperationException
Message: The server cannot handle directory requests.
Note For more information about the stack trace output, see the More information section.

CAUSE

This problem occurs because ASP.NET 2.0 tries to put a Lightweight Directory Access Protocol (LDAP) connection into fast bind mode. However, because the LDAP connection is already bound to the directory service, the LDAP connection cannot be put into fast bind mode. Therefore, the directory request fails.

RESOLUTION

A supported hotfix is available from Microsoft.

Service pack information

This hotfix is included in Microsoft .NET Framework 2.0 Service Pack 2 (SP2). To obtain the service pack from Microsoft Download Center, visit the following Microsoft Web site:
http://www.microsoft.com/downloads/details.aspx?FamilyID=5b2c0358-915b-4eb5-9b1d-10e506da9d0f&displaylang=en

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

You must have .NET Framework 2.0 Service Pack 1 installed to apply this hotfix. The 32-bit hotfix can be installed on Windows 2000, on Windows Server 2003 and on Windows XP. The 64-bit hotfix can be installed on Windows Server 2003 and Windows XP.

Restart requirement

You may have to restart the computer after you apply this hotfix if any of the affected files are being used when you install it. When you shut down any ASP.NET Web sites before you install the fix should let you avoid having to restart the system.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Windows 2000, Windows XP, Windows Server 2003 x86-based version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_perf.dll2.0.50727.186330,04005-May-200901:51x86
Aspnet_wp.exe2.0.50727.186330,03205-May-200901:51x86
System.web.dll2.0.50727.18635,185,53605-May-200901:52x86
Webengine.dll2.0.50727.1863430,41605-May-200901:51x86

Windows XP, Windows Server 2003 x64-based version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_perf.dll2.0.50727.186337,72004-May-200922:41x64
Aspnet_wp.exe2.0.50727.186341,80804-May-200922:41x64
System.web.dll2.0.50727.18635,263,36004-May-200922:45x64
Webengine.dll2.0.50727.1863734,54404-May-200922:41x64

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Stack output
    SP       IP       Function
    01CFF008 672EECDB System.DirectoryServices.Protocols.ErrorChecking.CheckAndSetLdapError(Int32)
    01CFF020 672F0C84 System.DirectoryServices.Protocols.LdapSessionOptions.FastConcurrentBind()
    01CFF030 660F9B59 System.Web.Security.DirectoryInformation.SetSessionOptionsForSecureConnection(System.DirectoryServices.Protocols.LdapConnection, Boolean)
    01CFF060 660F9A0B System.Web.Security.DirectoryInformation.CreateNewLdapConnection(System.DirectoryServices.Protocols.AuthType)
    01CFF07C 660F1BB8 System.Web.Security.ActiveDirectoryMembershipProvider.Initialize(System.String, System.Collections.Specialized.NameValueCollection)
01CFF14C 660B3A88 System.Web.Configuration.ProvidersHelper.InstantiateProvider(System.Configuration.ProviderSettings, System.Type)
For more information about how to use the ActiveDirectoryMembershipProvider class in ASP.NET 2.0, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.aspx
For more information about how to use the Membership feature in ASP.NET 2.0, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/ms998347.aspx
For more information about how to use the Fast Bind operation, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/cc223503(PROT.10).aspx

Properties

Article ID: 969876 - Last Review: October 7, 2011 - Revision: 3.0
APPLIES TO
  • Microsoft ASP.NET 2.0
  • Microsoft .NET Framework 2.0 Service Pack 1 (x86)
Keywords: 
kbexpertiseadvanced kbsurveynew kbqfe KB969876

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com