FIX: "The requested mode is invalid" error message when you run a managed application that uses the .NET Framework 3.5 SP1 or an earlier version to access a Windows Server 2008 R2 domain or forest

Symptoms

Consider the following scenario:

  • You create a System.DirectoryServices.ActiveDirectory.DirectoryContext object in a managed application. The application uses the object to access a Windows Server 2008 R2 domain or forest.

  • You try to request the mode of the domain or of the forest.

In this scenario, an ActiveDirectoryOperationException exception is generated. Additionally you receive the following error message:

The requested mode is invalid.

Note This issue occurs only when the application uses the .NET Framework 3.5 Service Pack 1 (SP1) or an earlier version.

Cause

This issue occurs because a Windows Server 2008 R2 domain and forest are not supported in the DomainMode enumeration function in the versions of the .NET Framework that are earlier than the .NET Framework 4.0. 

Resolution

Additional file information for all x86-based versions of Windows Vista SP2 or of Windows Server 2008 SP2

File name

Msil_system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_3fb0f6fd4b674dc7.manifest

File version

Not Applicable

File size

6,009

Date (UTC)

29-Jul-2010

Time (UTC)

19:15

Additional file information for all x64-based versions of Windows Vista SP2 or of Windows Server 2008 SP2

File name

Amd64_netfx-system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_2b6d1e9efde57582.manifest

File version

Not Applicable

File size

6,843

Date (UTC)

29-Jul-2010

Time (UTC)

19:18

File name

Msil_system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_3fb0f6fd4b674dc7.manifest

File version

Not Applicable

File size

6,009

Date (UTC)

29-Jul-2010

Time (UTC)

19:15

Additional file information for all IA-64-based versions of Windows Server 2008 SP2

File name

Ia64_netfx-system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_731a33381261d66c.manifest

File version

Not Applicable

File size

6,827

Date (UTC)

29-Jul-2010

Time (UTC)

18:34

File name

Msil_system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_3fb0f6fd4b674dc7.manifest

File version

Not Applicable

File size

6,009

Date (UTC)

29-Jul-2010

Time (UTC)

19:15

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 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 website:

http://support.microsoft.com/contactus/?ws=supportNote 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

To apply this hotfix, you must have the .NET Framework 2.0 SP2 or the .NET Framework 3.5 SP1 installed.

Restart requirement

You do not have to restart the computer after you apply this hotfix if no affected file is being used.

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.

File information for all x86-based versions of Windows XP or of Windows Server 2003

File name

File version

File size

Date

Time

Platform

System.directoryservices.dll

2.0.50727.4467

401,408

30-Jul-2010

06:42

x86

File information for all x64-based versions of Windows XP or of Windows Server 2003

File name

File version

File size

Date

Time

Platform

System.directoryservices.dll

2.0.50727.4467

401,408

30-Jul-2010

06:13

x64

File information for all IA-64-based versions of Windows Server 2003 

File name

File version

File size

Date

Time

Platform

System.directoryservices.dll

2.0.50727.4467

401,408

30-Jul-2010

06:13

IA-64

File information for all x86-based versions of Windows Vista Service Pack 2 (SP2) or of Windows Server 2008 Service Pack 2 (SP2)

File name

File version

File size

Date

Time

Platform

System.directoryservices.dll

2.0.50727.4466

401,408

29-Jul-2010

13:37

x86

File information for all x64-based versions of Windows Vista SP2 or of Windows Server 2008 SP2

File name

File version

File size

Date

Time

Platform

System.directoryservices.dll

2.0.50727.4466

401,408

29-Jul-2010

13:37

x64

File information for all IA-64-based versions of Windows Server 2008 SP2

File name

File version

File size

Date

Time

Platform

System.directoryservices.dll

2.0.50727.4466

401,408

29-Jul-2010

13:27

IA-64

Status

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

More Information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×