-
Is there an existing issue for this?
Describe the bugFirst, thank you for such a great product. I've been experimenting and it is really great to use. I setup a dotnet 9 blazor wasm project and imported BootstrapBlazor into the existing project. Everything seems to work except the PDF Viewer doesn't render. After digging into the source and looking at the iframe the pdf viewer generates, I was able to get it to render in a separate page by putting in the url directly to the browser, but adding an additional / before the root path. This caused the local host to state the static file was not compiled and will not be available when published. After some research, I found references to the new way that dotnet 9 handles static web assets. Unfortunately, blazor wasm doesn't give you the ability to change back the same as server and asp mvc does, so I downgraded the project to dotnet 8, made no other changes to the code, and the PDF Reader functioned as expected. Expected BehaviorPDF Reader works the same in dotnet 9 as it does in dotnet 8 Interactive render modeStatic Server (Static server-side rendering (static SSR)) Steps To Reproduce
@* <IFrame Src="https://localhost:7233/sample-data/Sample-Pdf-Medical-File.pdf"></IFrame> *@ Exceptions (if any)No response .NET VersionNET9.0 Anything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
@cmkeslin 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.
-
This is an example of how I was able to get the static asset error on the local host to dig into the issue and what pointed me to downgrade to dotnet 8 and try. The extra forward slash / aftter https://localhots:7233// is what clued me in to the packager. |
Beta Was this translation helpful? Give feedback.
-
@cmkeslin hi, where is the mini repro project? |
Beta Was this translation helpful? Give feedback.
-
I don't have any public repos setup... I'll get it done and published in the next couple days. Do you want it in dotnet 9 or working in dotnet 8.
Cheers,
--Chris
…Sent from my mobile device
________________________________
From: Argo Zhang ***@***.***>
Sent: Friday, May 2, 2025 9:38:12 PM
To: dotnetcore/BootstrapBlazor ***@***.***>
Cc: Christopher Keslin ***@***.***>; Mention ***@***.***>
Subject: Re: [dotnetcore/BootstrapBlazor] bug(PdfReader): does not work in dotnet 9 and blazor webassembly (Issue #5946)
[https://avatars.githubusercontent.com/u/22001478?s=20&v=4]ArgoZhang left a comment (dotnetcore/BootstrapBlazor#5946)<#5946 (comment)>
@cmkeslin<https://github.com/cmkeslin> hi, where is the mini repro project?
—
Reply to this email directly, view it on GitHub<#5946 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAPT2HIADKBM2DTNBCTDEM324QMYJAVCNFSM6AAAAAB4KT3CD6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBYGM2TCNJXGA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@cmkeslin thanks Chris. All are ok. You can upload a zip (no bin/obj folder) min-repro-project. |
Beta Was this translation helpful? Give feedback.
-
Since the issue was labeled with 由于该 issue 被标记为需要复现工程,却 2 天未收到回应,该 Issue 将与 2 天后自动关闭。 |
Beta Was this translation helpful? Give feedback.
-
Totally understand - I'll try and get something dropped in before EOD... |
Beta Was this translation helpful? Give feedback.
-
With the 9.6.1 update I'm unable to reproduce. You can close this issue. Thank you for all you do! |
Beta Was this translation helpful? Give feedback.
With the 9.6.1 update I'm unable to reproduce. You can close this issue. Thank you for all you do!