-
Is there an existing issue for this?
Describe the bugI'm facing an issue with my application using Bootstrap Blazor version 9.7.4. When running in a Docker container, the script
Any guidance on resolving this would be greatly appreciated. Expected BehaviorScript should load without errors in Docker as it does locally. Interactive render modeInteractive Server (Interactive server-side rendering (interactive SSR) using Blazor Server) Steps To ReproduceSteps to reproduce involve building and running the application in a Docker container, then observing the error upon accessing the application. Exceptions (if any)No response .NET VersionNET9.0 Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
@rabauss Thank you for filing this issue. In order for us to investigate this issue, please provide a minimalistic repro project that illustrates the problem. |
Beta Was this translation helpful? Give feedback.
-
@rabauss hi. thank you for report this issue. could you try this https://github.com/dotnetcore/BootstrapBlazor/blob/main/src/BootstrapBlazor.Server/Dockerfile later i will double check it |
Beta Was this translation helpful? Give feedback.
-
I almost have similar dockerfile - and it's working fine with v9.7.3
|
Beta Was this translation helpful? Give feedback.
-
I just wonder how I could log more errors with serilog. 2025-06-29 12:18:51.414 +00:00 [ERR] An unhandled exception has occurred while executing the request.
System.ArgumentOutOfRangeException: (Parameter 'count')
Actual value was 207857.
at Microsoft.AspNetCore.Http.SendFileFallback.SendFileAsync(Stream destination, String filePath, Int64 offset, Nullable`1 count, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Http.SendFileResponseExtensions.SendFileAsyncCore(HttpResponse response, String fileName, Int64 offset, Nullable`1 count, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Http.SendFileResponseExtensions.SendFileAsyncCore(HttpResponse response, IFileInfo file, Int64 offset, Nullable`1 count, CancellationToken cancellationToken)
at Microsoft.AspNetCore.StaticAssets.StaticAssetsInvoker.SendAsync(StaticAssetInvocationContext context)
at Microsoft.AspNetCore.StaticAssets.StaticAssetsInvoker.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.StatusCodePagesMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.<Invoke>g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task) |
Beta Was this translation helpful? Give feedback.
-
@rabauss hi. thanks for you feedback. could you post a address for docker image? i will take a look |
Beta Was this translation helpful? Give feedback.
-
I'm sorry it's a private image for an internal project which I cannot share! |
Beta Was this translation helpful? Give feedback.
-
@rabauss so. could you make a demo repro docker image? I want to help you solve this problem |
Beta Was this translation helpful? Give feedback.
-
@ArgoZhang I created a small demo project with which the problem is reproducable - see: https://github.com/rabauss/Intranet.Test |
Beta Was this translation helpful? Give feedback.
@rabauss hi i got something. please update the following changes
update to