I have an application that runs fine locally, using ASP.NET Core, Angular and a SQL Server database.
But, I am having problems when trying to deploy it. I have the SQL Server database deployed to Azure. The backend is also deployed to Azure.
I am running the frontend locally to test the backend /database. Any calls that it makes to the database return a http 500 error. I have also tried to use Postman to hit the endpoints, and I also get a http 500 error. It didn't show any errors when I published it and it showed that it should run. When I publish the solution it shows the database is connected:
You can see from the screen print that I have connected application insights also but it hasn't given me much information.
This is in Azure showing where the error was thrown, but I don't know where this is in my code:
These are the calls that get a 500 error they are both making calls to the database:
Here is the inspect from the locally running front end:
I followed this tutorial to deploy but I am not sure that the information it gave to connect the database to my API applied to the Stack I am using.
https://www.youtube.com/watch?v=u_CRppLcC9k&t=463s
Thank you in advance for any direction or help you can give me. I have been stuck on this for about a week.
Here is a screenshot of the rules for the firewall that have my api
here is a screenshot of the log stream I blocked out my ip address and the URL to the API.
What does this mean: >IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
I finally was able to get my deployed Back End Services to connect to my deployed Azure SQL DB. I did a few things. I am not sure which exact item fixed my 500.0 error I was receiving.