Ask questionsError: Invocation canceled due to the underlying connection being closed.

Describe the bug

As i am deployed and hosted the blazor server application in azure. And then i have re-direct the custom domain via AWS. For initial time the application runs properly.

But after some time like 5-10mins, the application throws the following script error. image

This is only occurred in server side application only. Client side app working properly.

To Reproduce

Steps to reproduce the behavior:

  1. Create blazor server App
  2. Published and host the azure site
  3. Redirect the custom Domain using AWS
  4. See error after couple of mins like ' image '



Additional context

I have followed the same steps for client side Blazor App. It works fine. But the error only throws randomly in server application only.

I have used latest .net SDK RC 1 / preview 9 and vs 2019 16.3preview 4

Can any one please help me to resolve this?


Answer questions mkArtakMSFT

Thanks for contacting us, @kmuthukumar23. This looks like an issue with the actual load-balancer/gateway you're using, which ends up dropping the connection. If this is the case, Azure SignalR service would definitely help. Can you give this a try? Is that a viable option for you?

@anurse do you have any guidance for these types of situations?


Related questions

HTTP Error 500.31 - ANCM Failed to Find Native Dependencies hot 123
The SPA default page middleware could not return the default page '/index.html' in production application hot 102
The SPA default page middleware could not return the default page '/index.html' in production application hot 96
Asp.Net MVC Core: “Error unprotecting the session cookie” exception hot 79
No DefaultChallengeScheme found from preview8 to preview9 hot 67
BadHttpRequestException: Reading the request body timed out due to data arriving too slowly hot 65
Method not found: 'Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder`1.HasIndex(System.Linq.Expressions.Expression`1<System.Func`2<System.__Canon,System.Object>>)'. hot 59
The library &#39;hostpolicy.dll&#39; required to execute the application was not found - AspNetCore hot 58
error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback' hot 57
Unexpected end of request content k8s pod - AspNetCore hot 53
Using 'UseMvc' to configure MVC is not supported while using Endpoint Routing. To continue using 'UseMvc', please set 'MvcOptions.EnableEndpointRounting = false' inside 'ConfigureServices'. hot 50
IIS in-process hosting incorrectly throws ConnectionResetException for HTTP POST hot 47
HTTP Error 500.30 - ANCM In-Process Start Failure hot 43
Error: Server returned handshake error: Handshake was canceled. hot 43
Issue with BuildServiceProvider() in ConfigureServices() hot 42
Github User Rank List