Entity Framework Error - The version of SQL Server in use does not support datatype 'datetime2'

后端 未结 3 1695
不思量自难忘°
不思量自难忘° 2021-01-06 10:28

I am using Entity Framework 4.0 in an ASP.NET 4.0 Web Form.

All is fine on the development server. But when I get to the production server, I my Elmah logs this erro

3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-06 10:59

    I dont see any workaround till date. So if you are using SQL Server 2008 Express, please right click on your edmx, open it with XML (Text) Editor and set ProviderManifestToken="2005".

    Doesn't sound that good. But its all I have got as of now.

提交回复
热议问题