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.
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.
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:
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:
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 name | File version | File
size | Date | Time | Platform |
|---|
| Aspnet_perf.dll | 2.0.50727.1863 | 30,040 | 05-May-2009 | 01:51 | x86 |
| Aspnet_wp.exe | 2.0.50727.1863 | 30,032 | 05-May-2009 | 01:51 | x86 |
| System.web.dll | 2.0.50727.1863 | 5,185,536 | 05-May-2009 | 01:52 | x86 |
| Webengine.dll | 2.0.50727.1863 | 430,416 | 05-May-2009 | 01:51 | x86 |
Windows XP, Windows Server 2003 x64-based version
Collapse this tableExpand this table
| File name | File version | File
size | Date | Time | Platform |
|---|
| Aspnet_perf.dll | 2.0.50727.1863 | 37,720 | 04-May-2009 | 22:41 | x64 |
| Aspnet_wp.exe | 2.0.50727.1863 | 41,808 | 04-May-2009 | 22:41 | x64 |
| System.web.dll | 2.0.50727.1863 | 5,263,360 | 04-May-2009 | 22:45 | x64 |
| Webengine.dll | 2.0.50727.1863 | 734,544 | 04-May-2009 | 22:41 | x64 |
Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section.
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:
For more information about how to use the
Membership feature in ASP.NET 2.0, visit the following Microsoft Web site:
For more information about how to use the
Fast Bind operation, visit the following Microsoft Web site: