ASP.NET Core 1.1 runs fine locally but when publishing to Azure says “An error occurred while starting the application.”

前端 未结 10 1161
情话喂你
情话喂你 2020-12-01 02:42

I\'ve been developing an ASP.NET Core web app, based largely on the MVC template provided in Visual Studio 2017 RC2. It runs just fine in local debug mode, but when I try to

10条回答
  •  臣服心动
    2020-12-01 03:17

    In My case, that was because I was trying to get a some data in Startup, and dbcontext was not updated in production environment.

    Changed my ConnectionString to Production and runned Update-Database, and problem solved.

提交回复
热议问题