-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Description
I have created a simple Web Service using Web Api with .NET core.
When I run the service on my development machine and try to access it from the chrome browser on my development machine, the service behaves as expected. When I ask another developer to try to access my service from the chrome browser on their machine, I get the below error in the service logs:
Any idea how i can allow remote machines to access my service?
I am using windows authentication for the service.
Exception thrown: 'System.InvalidOperationException' in Microsoft.AspNetCore.Authentication.Negotiate.dll
Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler: Error: An exception occurred while processing the authentication request.
System.InvalidOperationException: An anonymous request was received in between authentication handshake requests.
at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler: 2020-03-24 14:26:00,864 [43] ERROR Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler - An exception occurred while processing the authentication request.
System.InvalidOperationException: An anonymous request was received in between authentication handshake requests.
at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
Exception thrown: 'System.InvalidOperationException' in System.Private.CoreLib.dll
Exception thrown: 'System.InvalidOperationException' in System.Private.CoreLib.dll
Exception thrown: 'System.InvalidOperationException' in System.Private.CoreLib.dll
Microsoft.AspNetCore.Server.Kestrel: Error: Connection id "0HLUFVOPNUQDT", Request id "0HLUFVOPNUQDT:0000002A": An unhandled exception was thrown by the application.
System.InvalidOperationException: An anonymous request was received in between authentication handshake requests.
at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication1 application) Microsoft.AspNetCore.Server.Kestrel: 2020-03-24 14:26:00,929 [43] ERROR Microsoft.AspNetCore.Server.Kestrel - Connection id "0HLUFVOPNUQDT", Request id "0HLUFVOPNUQDT:0000002A": An unhandled exception was thrown by the application. System.InvalidOperationException: An anonymous request was received in between authentication handshake requests. at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler.HandleRequestAsync() at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication
1 application)