Reputation: 13
I am new to GitHub and Blazor WASM. I am a WinForm developer and converted a Visual Studio (VS2019) WinForm to WASM using BlazorWebAsembly, NetCore 5.0 with VS2019. This is on https://burtstewart.github.io/BlazorWAMapp1/. The Page loads from VS using IIS fine but via Browser I get a "An unhandled error has occurred. Reload 🗙"
Can anyone provide help? thanks
Upvotes: 1
Views: 95
Reputation: 2601
Github pages are made to primarily host applications created with Jekyll. See this documentation for more information.
So hosting a WASM blazor app is not the primary scope. You can see that the page is not loading because the Github Page Webserver doesn't know how to serve the request. Running it locally, within an IIS, the IIS loads all the requested files, which then bootstrap the WASM application.
You can follow this tutorial, which helped me to accomplish the task. And you will see that there are plenty of tasks involved.
Upvotes: 2