I am using the latest .net core 6 application template with angular and identity from visual studio 2022. I am able to run everything fine locally. I have also created an azure database for the identity management. When I run my application locally while pointing to the azure database everything works fine.
I have created an azure app service using the .net 6 runtime. I published my application to the app service.
My issue is that when I run the app on azure, I get this error:
[application name] is currently unable to handle this request.
HTTP ERROR 500
How can I troubleshoot this and what might I be missing in my azure setup?
I essentially did exactly what is detailed here except for the code modifications: https://www.c-sharpcorner.com/article/easily-create-spa-with-net-6-0-and-angular-13-and-deploy-to-azure/
We have deployed .Net CORE and angular to azure without any issues and it's up and running.
Output Screenshot:
[application name] is currently unable to handle this request. HTTP ERROR 500
Thanks to @Manoj Choudhari's blog ,
To get the detailed exception, add app.UseDeveloperExceptionPage() in
startup.cs
Configure method.
In your Application => ClientApp folder => angular.json file, change the outputPath
to dist
, redeploy the app once again and check it.
angular.json
code file:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.