c# WebApp connection refused after published

Alessandro Grassi 6 Reputation points

I've a problem with my webapp, but only after i publish it on azure.
If i start the web app from visual studio in my machine locally, and i try to call an api (on localhost:5001) it work normally, but when i try to call the api to web app published on azure (xxxx.azurewebsite.net) it always fails with a connection refused error
Any suggestions?


Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,836 questions
{count} votes

1 answer

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,446 Reputation points

    @AlessandroGrassi-5467 Thanks for the response. Could you please also confirm which SKU/pricing tier your app is running on?

    It could be that your web app has reached a resource quota limit that might apply to a Free or Shared scale service plan. Please try scaling up to the next higher tier so the application gets all the resources it needs.

    Please check if that resolves the issue.

    0 comments No comments