WoI*_*IIe 6 azure .net-core azure-web-app-service blazor blazor-server-side
将我们的 blazor 应用程序部署到 azure 时,它五分之四失败并出现此错误(从 chrome 开发工具复制):
[2019-12-16T11:12:55.214Z] Information: Normalizing '_blazor' to 'https://example.com/_blazor'.
[2019-12-16T11:12:55.470Z] Information: WebSocket connected to wss://example-web-signalr-service.service.signalr.net/client/?hub=componenthub&asrs.op=%2F_blazor&negotiateVersion=1&asrs_request_id=...&id=...&access_token=...
[2019-12-16T11:12:55.548Z] Error: The list of component records is not valid.
e.log @ blazor.server.js:15
C @ blazor.server.js:8
(anonymous) @ blazor.server.js:8
(anonymous) @ blazor.server.js:1
e.invokeClientMethod @ blazor.server.js:1
e.processIncomingData @ blazor.server.js:1
connection.onreceive @ blazor.server.js:1
i.onmessage @ blazor.server.js:1
[2019-12-16T11:12:55.552Z] Information: Connection disconnected.
Uncaught (in promise) Error: Invocation canceled due to the underlying connection being closed.
at e.connectionClosed (blazor.server.js:1)
at e.connection.onclose (blazor.server.js:1)
at e.stopConnection (blazor.server.js:1)
at e.transport.onclose (blazor.server.js:1)
at e.close (blazor.server.js:1)
at e.stop (blazor.server.js:1)
at e.<anonymous> (blazor.server.js:1)
at blazor.server.js:1
at Object.next (blazor.server.js:1)
at a (blazor.server.js:1)
Run Code Online (Sandbox Code Playgroud)
我们无法理解这一点。blazor 像这样失败的原因可能是什么?为什么它不会在我们本地的开发人员机器上失败?在谷歌中很难找到任何关于此的信息。
请告诉我是否需要提供更多信息。我不确定哪些代码片段可能是有用的信息。
Kam*_*ran 11
尝试这个:
services.AddSignalR().AddAzureSignalR(options =>
{
options.ServerStickyMode = Microsoft.Azure.SignalR.ServerStickyMode.Required;
});
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1865 次 |
最近记录: |