I am new bee to blazor, my blazor Web assembly app gets disconnected with the server after publishing it using azure app service it works fine for some time in development mode it says "An Unhandled Error has occurred Reload" and in console the error message shows such error
Kindly let me know what am I doing wrong here I am using Visual studio 2022 and .NET 6 version , Thanks.
I have deployed my .NET 3.1 Blazor Web App and currently the VS IDE and Azure Portal has no issues with the deployment/publishing to Azure App Service until there are any breaking changes in the code of the Web Application.
As you mentioned only the error description which is
500 Internal Server Error
is the generic error that comes when request is not reached to the server properly due to breaking code or timeouts, or server is not configured properly.Also @Henk Holterman point is correct that logs will give the appropriate error paths where it is failing.
In Azure Portal > your Web App >
Diagnose and Solve Problems
>HTTP Server Errors
> there you can see the errors if any 50X related errors are occurred.