Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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.

↑ Back to the top


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. 

↑ Back to the top


Resolution

Additional file information for all x86-based versions of Windows Vista SP2 or of Windows Server 2008 SP2
File nameMsil_system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_3fb0f6fd4b674dc7.manifest
File versionNot Applicable
File size6,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 nameAmd64_netfx-system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_2b6d1e9efde57582.manifest
File versionNot Applicable
File size6,843
Date (UTC)29-Jul-2010
Time (UTC)19:18
File nameMsil_system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_3fb0f6fd4b674dc7.manifest
File versionNot Applicable
File size6,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 nameIa64_netfx-system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_731a33381261d66c.manifest
File versionNot Applicable
File size6,827
Date (UTC)29-Jul-2010
Time (UTC)18:34
File nameMsil_system.directoryservices_b03f5f7f11d50a3a_6.0.6002.22457_none_3fb0f6fd4b674dc7.manifest
File versionNot Applicable
File size6,009
Date (UTC)29-Jul-2010
Time (UTC)19:15

↑ Back to the top


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

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 nameFile versionFile sizeDateTimePlatform
System.directoryservices.dll2.0.50727.4467401,40830-Jul-201006:42x86
File information for all x64-based versions of Windows XP or of Windows Server 2003
File nameFile versionFile sizeDateTimePlatform
System.directoryservices.dll2.0.50727.4467401,40830-Jul-201006:13x64
File information for all IA-64-based versions of Windows Server 2003 
File nameFile versionFile sizeDateTimePlatform
System.directoryservices.dll2.0.50727.4467401,40830-Jul-201006:13IA-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 nameFile versionFile sizeDateTimePlatform
System.directoryservices.dll2.0.50727.4466401,40829-Jul-201013:37x86
File information for all x64-based versions of Windows Vista SP2 or of Windows Server 2008 SP2
File nameFile versionFile sizeDateTimePlatform
System.directoryservices.dll2.0.50727.4466401,40829-Jul-201013:37x64
File information for all IA-64-based versions of Windows Server 2008 SP2
File nameFile versionFile sizeDateTimePlatform
System.directoryservices.dll2.0.50727.4466401,40829-Jul-201013:27IA-64

↑ Back to the top


Status

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

↑ Back to the top


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

↑ Back to the top


Keywords: kbqfe, kbhotfixserver, kbfix, kbnotautohotfix, kbhotfixdev, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2260240
Revision : 1
Created on : 1/7/2017
Published on : 3/26/2013
Exists online : False
Views : 397