DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 2260240 - Last Review: March 26, 2013 - Revision: 4.0

Hotfix Download Available
View and request hotfix downloads
 

On This Page

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

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=support (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

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
Collapse this tableExpand this table
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
Collapse this tableExpand this table
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 
Collapse this tableExpand this table
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)
Collapse this tableExpand this table
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
Collapse this tableExpand this table
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
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.directoryservices.dll2.0.50727.4466401,40829-Jul-201013:27IA-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  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

Applies to
  • Microsoft .NET Framework 3.5 Service Pack 1
  • Microsoft .NET Framework 2.0
  • Microsoft .NET Framework 2.0 Service Pack 1 (x86)
  • Microsoft .NET Framework 2.0 Service Pack 2
Keywords: 
kbqfe kbhotfixserver kbfix kbsurveynew KB2260240
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support