zahikaram
zahikaram

Reputation: 173

DotNet Core web app working locally but not when deployed to Azure

I am trying to build a new web app using DotNet Core. The app is Web API + AngularJS with ui-router.

The same app was working correctly both locally and on Azure using ASP.NET 5. When I updated, I fixed a lot of stuff and got the new app working locally. However, on Azure, I have the following error whenever I try to do any action: "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

I searched for the error online and tried to use the provided solutions but in vain (e.g.: ASP.NET Core app not working after publish to Azure).

I did not post any code here because honestly I don't know where to start and what to post. Could someone please advise?

Regards,

Upvotes: 2

Views: 3109

Answers (1)

zahikaram
zahikaram

Reputation: 173

In case someone was facing the same issue:

  1. I was able to detect the problem by following this link (How do I debug an ASPNET Core MVC Application Deployed in Azure)
  2. This helped me detect that it was not able to find node_modules
  3. I added the node_modules directory to the publishOptions -> include

It worked!

Regards,

Upvotes: 2

Related Questions