Repldiag Crashes with MissingMethodException

Sep 24, 2008 at 6:47 PM
Edited Sep 24, 2008 at 7:04 PM
When running this on a machine that has .NET 2.0 installed, but does not have SP1 or later for .NET 2.0 the following error may be encountered:

Unhandled Exception: System.MissingMethodException: Method not found: 'Void System.DirectoryServices.Protocols.LdapDirectoryIdentifier..ctor(System.String, Int32, Boolean, Boolean)'.
   at Kenbrumf.DirectoryServiceAccess.WLdapSearchRequest..ctor(String connectionPoint, Int32 portNumber, String searchRoot, String filter, SearchScope scope, String[] attributeList)
   at Kenbrumf.DirectoryServiceAccess.RootDse..ctor(String connectionPoint, Int32 portNumber)
   at Kenbrumf.DirectoryServiceAccess.Forest..ctor(String connectionPoint)
   at Kenbrumf.ReplDiag.Program.Main(String[] args)

Remediate this by installing .NET 2.0 SP1 or later.