I'm trying to root out the cause of an error I am getting in our main application, which I can hopfuly replicate here.
If I create a simple blazor application in Radzen (2.54.1), with only two or three blank pages all using the main layout. When run the application, open a console window in Chrome and refresh the page a few times, I get an error in the console.
I hadn't noticed this until only recently, as it doesn't seem to impact functionality.
In our main application, I get similar behavior/errors when users login/logout, when our layout switches between login and main layouts.
Thanks for the reply. Sadly, the output shows nothing unusual. The issue error doesn't occur 100% of the time I refresh the page, and the output is the same whether the error occurs or not.
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 POST http://localhost:5000/_blazor/disconnect multipart/form-data; boundary=----WebKitFormBoundarygDBo4eouPmJkyxuZ 359
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint 'Blazor disconnect'
dotnet: info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint 'Blazor disconnect'
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 3.1916ms 200
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/
dotnet: info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint '/_Host'
info: Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker[3]
Route matched with {page = "/_Host", action = "", controller = ""}. Executing page /_Host
info: Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker[103]
Executing an implicit handler method - ModelState is Valid
dotnet: info: Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker[104]
Executed an implicit handler method, returned result Microsoft.AspNetCore.Mvc.RazorPages.PageResult.
dotnet: info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint '/_blazor'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 8801.508ms 101
dotnet: info: Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure.PageActionInvoker[4]
Executed page /_Host in 6.029ms
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint '/_Host'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 7.4907ms 200 text/html; charset=utf-8
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/_content/Radzen.Blazor/Radzen.Blazor.js
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/assets/css/styles.css
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /assets/css/styles.css was not modified
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /_content/Radzen.Blazor/Radzen.Blazor.js was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 0.8048ms 304 text/css
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 0.7548ms 304 application/javascript
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/_framework/blazor.server.js
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /_framework/blazor.server.js was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 0.1421ms 304 application/javascript
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/assets/css/styles-generated.css
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /assets/css/styles-generated.css was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 0.6053ms 304 text/css
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/_content/Radzen.Blazor/css/default.css
dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /_content/Radzen.Blazor/css/default.css was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 0.3584ms 304 text/css
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 POST http://localhost:5000/_blazor/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint '/_blazor/negotiate'
dotnet: info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
Executed endpoint '/_blazor/negotiate'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 1.1521ms 200 application/json
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/_content/Radzen.Blazor/fonts/SourceSansPro-Regular.woff
dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /_content/Radzen.Blazor/fonts/SourceSansPro-Regular.woff was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 1.3566ms 304 application/font-woff
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/_blazor?id=h5RwDZ_PbEYUM3P6OIZk_Q
info
dotnet: : Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
Executing endpoint '/_blazor'
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/favicon.ico
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2]
Sending file. Request path: '/favicon.ico'. Physical path: 'C:\radzen SimpleOne\server\wwwroot\favicon.ico'
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 2.2109ms 200 image/x-icon
dotnet: info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/_content/Radzen.Blazor/fonts/MaterialIcons-Regular.woff
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
Request starting HTTP/1.1 GET http://localhost:5000/_content/Radzen.Blazor/fonts/SourceSansPro-Bold.woff
info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /_content/Radzen.Blazor/fonts/MaterialIcons-Regular.woff was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 0.3063ms 304 application/font-woff
dotnet: info: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6]
The file /_content/Radzen.Blazor/fonts/SourceSansPro-Bold.woff was not modified
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
Request finished in 2.1056ms 304 application/font-woff