相关疑难解决方法(0)

在.net4上升级到EF6 - System.Data.MetadataException:指定的模式无效

我有一个在.net v4下运行的asp.net网站.我已经从Entity Framework v5升级到v6.02,并且使用nuget提供的EntityFramework v4 dll在IIS express和.net4上本地运行良好.

我发布到我的托管公司并得到以下错误.升级到.net4.5可能会有所帮助,但目前我的提供商不支持此选项.

有什么建议?

System.Data.MetadataException: Schema specified is not valid. Errors: BkkpsModel.csdl(2,9) : warning 0005: Could not find schema information for the attribute 'Namespace'. BkkpsModel.csdl(2,32) : warning 0005: Could not find schema information for the attribute 'Alias'. BkkpsModel.csdl(2,98) : error 0005: The 'http://schemas.microsoft.com/ado/2009/02/edm/annotation:UseStrongSpatialTypes' attribute is not declared. BkkpsModel.csdl(2,2) : error 0010: The element Schema in namespace http://schemas.microsoft.com/ado/2009/11/edm was unexpected for the root element. The expected Schema in one of the following namespaces: http://schemas.microsoft.com/ado/2006/04/edm, http://schemas.microsoft.com/ado/2007/05/edm, http://schemas.microsoft.com/ado/2008/09/edm.
Run Code Online (Sandbox Code Playgroud)

entity-framework

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

entity-framework ×1