【发布时间】:2014-01-16 03:12:39
【问题描述】:
我有一个在 .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.
【问题讨论】:
标签: entity-framework