How to Get Error Details of an ASP.NET 5 app deployed on Azure Websites?

后端 未结 10 1909
执笔经年
执笔经年 2020-12-05 02:23

I have an ASP.NET 5 solution with a website and several project libraries. I\'m using MVC 6 and Entity Framework 7. Locally the app is working fine and until today it was wo

10条回答
  •  借酒劲吻你
    2020-12-05 02:39

    I had the same issue and spent a lot of time trying to dig into error logs, etc. (all of the other solutions given above). None of them giving any clue of what's gone wrong.

    What I did that helped me finally see the error was to simply try to publish to a local IIS (after all azure web-app runs your dnx on IIS internally).

    I could then immediately see that there are error when IIS tries to compile the source. (in my case was some malformed nuget package).

    So in short:

    Recreate what happens on azure web-app by publishing to local IIS.

提交回复
热议问题