Skip to content

Connection that works with netcoreapp3.1 fails with net5.0 #4597

@penenkel

Description

@penenkel

Hello, me and my colleges have run into the following puzzling problem.

We have a WCF client application that communicates with a third party WCF server. We are using a BasicHttpBinding with BasicHttpSecurityMode.Transport and HttpClientCredentialType.Windows to establish the binding. Everything works as expected if the TFM is netcoreapp3.1, but as soon as we try to switch to net5.0 each connection fails with

System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate'.

The version of System.ServiceModel.Http does not seem to matter. We tried it with both 4.7 and 4.8.1.

As far as I can tell the above error simply indicates a 401 status response. As such I am not certain if this is really a problem with WCF or a problem with the underlying runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions