profile
viewpoint

Ask questionsASP.NET Core 3.0 Blazor Server fails to load when deploying multiple servers

Versions

  • ASP.NET Core - v3.0.0
  • Microsoft.Azure.SignalR - v1.1.1 (deployed on Azure using Standard pricing and Default model)

Startup Configuration

services.AddSignalR().AddAzureSignalR();
services.AddRazorPages();
services.AddServerSideBlazor();

Error

In the browser console:

Error: The list of component records is not valid.
Uncaught (in promise) Error: Invocation canceled due to the underlying connection being closed.

Additional context

This error only occurs when I deploy the ASP.NET Core app to multiple servers behind a load balancer. The docs seem to suggest that when using Azure SignalR Service, sticky sessions are handled automatically for you, but this error appears to suggest otherwise?

aspnet/AspNetCore

Answer questions pheuter

@anurse I will setup the tracing shortly, just want to further clarify that everything works as expected when I simply change the Kubernetes deployment replica size to 1. This means that requests to that single pod are still routed through the same load balancer and nginx ingress controller, and the wss:// connection appears to work just fine.

Related questions

ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY when clean webapi template hot 278
Restore MvcJsonOptions to ASP.NET Core 3.0 as a type forward? hot 255
HTTP Error 500.31 - ANCM Failed to Find Native Dependencies hot 252
The SPA default page middleware could not return the default page '/index.html' in production application hot 162
HTTP Error 500.30 - ANCM In-Process Start Failure hot 147
HTTP Error 500.30 - ANCM In-Process Start Failure hot 140
Calling Request.EnableRewind throw on 3.0.0-preview7 hot 127
ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY when clean webapi template hot 118
Issue with BuildServiceProvider() in ConfigureServices() hot 106
DataProtection - CryptographicException when using EntityFramework as Key Storage Provider hot 104
Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing. To continue using 'UseMvc', please set 'MvcOptions.EnableEndpointRounting = false' inside 'ConfigureServices'. hot 98
Error: Server returned handshake error: Handshake was canceled. hot 91
error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback' hot 87
Blazor - rzc generate exited with code 1. DotNet Core 3.0.100-preview8-013656 hot 86
IIS in-process hosting incorrectly throws ConnectionResetException for HTTP POST hot 84
Github User Rank List