CoreWCF / samples

MIT License
38 stars 19 forks source link

Basic Sample yields Communication Exception with latest CoreWCF packages #22

Closed djmilligan closed 1 year ago

djmilligan commented 1 year ago

Which sample is the bug for Please give the path of the sample or a complete GitHub URL. https://github.com/CoreWCF/samples/tree/main/Basic

Describe the bug A clear and concise description of what the bug is.

I upgraded the following package references: CoreWCF.Http -> 1.1.0 CoreWCF.Primitives -> 1.1.0

To Reproduce Steps to reproduce the behavior:

  1. Go to 'WsHttpUserPassword_server.csproj'
  2. Modify package references to latest versions
  3. Clean & Build & Run Solution
  4. See error

Expected behavior A clear and concise description of what you expected to happen. Should behave the same as with previous versions

Repo environment (please complete the following information):

Additional context Add any other context about the problem here.

Running sample with latest packages yields Communication Exception

djmilligan commented 1 year ago

I added the following to the ConfigureServices method in WSHttpUserPassword file and it now works with the latest CoreWCF libraries:

services.AddAuthentication(NegotiateDefaults.AuthenticationScheme).AddNegotiate("Basic", null);

Note: I am hosting via IIS/IIS Express