MVC4 API on Azure WebSites or Azure Cloud Services [Error] : 'System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption'

后端 未结 2 644
渐次进展
渐次进展 2020-12-19 05:20

I am getting this error when I try to deploy my Web API project to both Cloud WebSites and Cloud Hosted Services on Azure:

\"{\"ExceptionType\":\"System.Type         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-19 06:16

    So it seemed that the problem was caused by me rolling back to .NET 4 from 4.5 and Entity not rolling back. It seems that Entity 5 only runs on .NET 4.5 and when the deployment was expecting 4.3.1 it had a 5.0.0 DLL and it messed everything up.

提交回复
热议问题