jsakamoto / Toolbelt.Blazor.HeadElement

Head element support (change the document title, "meta" elements such as OGP, and "link" elements) for Blazor apps.
https://demo-blazor-headelement.azurewebsites.net/
Mozilla Public License 2.0
158 stars 11 forks source link

ObjectDisposedException: Cannot access a closed Stream #17

Open doanhquang2005 opened 3 years ago

doanhquang2005 commented 3 years ago

I use "Toolbelt.Blazor.HeadElement.ServerPrerendering" error: An unhandled exception occurred while processing the request. ObjectDisposedException: Cannot access a closed Stream. System.IO.MemoryStream.Seek(long offset, SeekOrigin loc)

Stack Query Cookies Headers Routing ObjectDisposedException: Cannot access a closed Stream. System.IO.MemoryStream.Seek(long offset, SeekOrigin loc) Toolbelt.Blazor.HeadElement.Middlewares.HeadElementServerPrerenderingMiddleware.InvokeAsync(HttpContext context, IHeadElementHelperStore store) Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.MigrationsEndPointMiddleware.Invoke(HttpContext context) Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context) Hope the author helps to fix this error! Thanks,

jsakamoto commented 3 years ago

@doanhquang2005 Please tell me what your Startup.cs code is.

jsakamoto commented 3 years ago

@doanhquang2005 I could not reproduce your issue yet. Could you attach all files of a sample project which can reproduce that issue as a single zip package to this thread?