gpt4 book ai didi

asp.net - 红隼 : An anonymous request was received in between authentication handshake requests?

转载 作者:行者123 更新时间:2023-12-04 17:31:38 24 4
gpt4 key购买 nike

我创建了一个 Kestrel Asp.Net 核心应用程序并尝试将其托管在 Windows Server (server1) 上。我使用

启动应用程序

浏览 http://server1:8008在 server1 上运行没有任何错误。

但是,浏览时http://server1:8008在远程机器上,出现以下错误?

PS C:\Websites\Portal> .\Blazor.exe --urls http://server1:8008
info: Microsoft.Hosting.Lifetime[0]
Now listening on: http://[::]:8008
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\Websites\Portal
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.
fail: Microsoft.AspNetCore.Authentication.Negotiate.NegotiateHandler[5]
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()
fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the request.
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.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware midd
leware, HttpContext context, Task task)

最佳答案

有点旧,但是,对此的更正......

您需要为您的应用程序设置 SPN。一旦设置了正确的 SPN,问题应该就会消失。

关于asp.net - 红隼 : An anonymous request was received in between authentication handshake requests?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59185648/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com