aspnetcore: ASP.NET Core 8-p6 Blazor page does not load in new browser window

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

WebAssembly application that is being migrated from .NET7 to .NET8 following instructions:

https://github.com/danroth27/Net8BlazorWebAssembly/blob/main/README.md

When I open a new browser tab and navigate to a razor page it sometimes loads, but most of the times, the request is “pending” in the network tab of the browser. I do see a few System.IO.IOExceptions exceptions:

System.IO.IOException: 'Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..'

Inner exception:

SocketException: The I/O operation has been aborted because of either a thread exit or an application request.

This is what the logs say:

info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/2 GET https://localhost:5001/posts/pooling-bufferwriter - - - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint ‘/posts/{postname} (/posts/{postname})’

I see the InitailzieAsync and OnParametersSetAsync invoked. When I navigate to the same page from the “home page”, it loads correctly.

Expected Behavior

Page would load even when navigating to it from a new tab.

Steps To Reproduce

No response

Exceptions (if any)

I see some IO exceptions.

.NET Version

8.0.100-preview.6.23330.14

Anything else?

Microsoft.AspNetCore.App 8.0.0-preview.6.23329.11 Browser: Edge

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 18 (18 by maintainers)

Most upvoted comments

Try the latest 8.0-rc1 sdk from here. Try not to mix the 9.0 SDK with 8.0 packages, but they shouldn’t have diverged too much yet.

The cycle issue appears to be a problem with the application code and we did not expect that to be fixed by updating. Are you passing any parameters with a Parent property to a component?

Hi @danroth27 ,

I will give it a go later this week, still on holidays with limited connectivity.

The other thing I notice: it hangs silently based on the number of components on the page.

This is being tracked as part of #49172