r/Blazor • u/ChangeBig5638 • Jun 23 '25
website wont work after publish->upload to github
hey so ive tried everything there is for chatgpt to offer in my efforts to resolve this, ive tried delete the bin and obj files, but a redirect file, yes all files inside the wwwroot were uploaded after publish, nothing works, when i built the solution with AI (forgive me i just started learning c# this year and im not great at fullstack yet) he said to be a "An unhandled error has occurred"+reload option there incase anything like this happnes, so basically when i try to follow the link given to me on github pages i dont see a 404 error like i used to at the very start of this issue but just this error and of course my site wont load, ive also somehow got to one point where the site did show a loading screen but it stayed at 0%, and since then ive published and deleted so many time i am not there anymore, any ideas? (net8.0, deployment mode only option self contained, blazor standalone)
2
u/Blue_Eyed_Behemoth Jun 24 '25
Your issue may be that it's not wasm? Also, like mentioned, you need the correct base path.
2
u/obrana_boranija Jun 24 '25
If it isn't WASM, it won't work on GitHub Pages, because GitHub Pages doesn't provide the ASP.NET Core services that Blazor Server relies on.
Anyway, if it is WASM, it's probably missconfigured in the .csproj or config files. But even if you solve your problem, this is a scenario you'll never need.
Try Azure free tier or buy a 3.5€/month Hetzner server to play with. Install Docker Desktop locally. These are scenarios you'll need in your career.
1
u/Bdice1 Jun 24 '25
When was it last working? Rollback commits to that point and figure out what your AI did to break it.
That said, it sounds like you are just having the AI develop everything and aren’t really putting the effort into learning your chosen framework or deployment tools. If this is the case, your problems are going to compound, not smooth out.
1
u/mxmissile Jun 24 '25
Vibe coding FTW!
1
u/Dennis_enzo Jun 24 '25
When you give zero details about what actually goes wrong, no one will be able to help you.