How to troubleshoot unreachable blazor local server? #53621
-
Hi, I have been working on a blazor wasm project (.net 7) in visual studio 2022, for about 6 months. Never had an issue running the project, until now. After an accidental rebuild, my local server, at localhost:7290, just isn't reachable anymore - I get a 404 error in the browser. The blazor client never has a chance to boot. This has been going on for days, I tried everything I could think of, short of rebuilding the entire project from scratch, but I am getting nowhere. How would you troubleshoot this kind of issue? How can I get more information about why the (local!) server can't be reached?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I managed to find the cause after all. You will not find this answer (or this problem) anywhere else on the internet ;) Turns out I had removed the client project dependency in the server project, thinking this was odd and likely a mistake I made previously. Even though I had restored the dependency by going into the solution's "Project Dependencies", that had not restored the actual client project reference in the server project. When I fixed that, my project worked again. |
Beta Was this translation helpful? Give feedback.
I managed to find the cause after all. You will not find this answer (or this problem) anywhere else on the internet ;)
Turns out I had removed the client project dependency in the server project, thinking this was odd and likely a mistake I made previously. Even though I had restored the dependency by going into the solution's "Project Dependencies", that had not restored the actual client project reference in the server project. When I fixed that, my project worked again.