Skip to content

LdapConnection BeginSendRequest Throws PlatformNotSupportedException in .NET Core 2.2 #28470

@gh5692

Description

@gh5692

LdapConnection.BeginSendRequest uses BeginInvoke which is not supported in .NET Core.

<TargetFramework>netcoreapp2.2</TargetFramework>

<PackageReference Include="System.DirectoryServices.Protocols" Version="4.5.0" />

System.PlatformNotSupportedException: Operation is not supported on this platform.
at System.DirectoryServices.Protocols.GetLdapResponseCallback.BeginInvoke(Int32 messageId, LdapOperation operation, ResultAll resultType, TimeSpan requestTimeout, Boolean exceptionOnTimeOut, AsyncCallback callback, Object object)
at System.DirectoryServices.Protocols.LdapConnection.BeginSendRequest(DirectoryRequest request, TimeSpan requestTimeout, PartialResultProcessing partialMode, AsyncCallback callback, Object state)
at System.DirectoryServices.Protocols.LdapConnection.BeginSendRequest(DirectoryRequest request, PartialResultProcessing partialMode, AsyncCallback callback, Object state)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions