0

I created One MVC application where Repos and Service Layer are implemented. and I tried to deploy the underlying Database in azure SQL Virtual Machine(IAAS) and application in azure App service(Web app) as PAAS. When I deploy it in the cloud, I got a deployment error on action methods where the repo layer presents. I tried to remove the repo layer and run it, then it perfectly works.

enter image description here

In the azure Log stream, it says, "This error means that there was a problem while processing the request. The request was received by the Web server, but during processing a fatal error occurred, causing the 500 error."

I don't know how to debug the issue. I tried many things using the repo layer, but it didn't work on a remote system. Though It works on localhost perfectly, it shows a deployment error in the remote system.

here you can see my code in the GitHub repository "https://github.com/GSudhindra/Shopping/tree/master/Shopping".

I hope to get a possible solution here.

Harshitha
  • 3,784
  • 2
  • 4
  • 9
  • Add `ASPNETCORE_ENVIRONMENT` key with value `Development` in Azure Web App Configuration => Application Settings and check once – Harshitha Oct 07 '22 at 07:16

0 Answers0