我有一個運行在.net v4下的asp.net網站。 我已經從Entity Framework v5升級到v6.02,並且使用Nuget提供的EntityFramework v4 dll在IIS express和.net4本地運行良好。在.net4上升級到EF6 - System.Data.MetadataException:指定的模式無效
我發佈到我的託管公司,得到下面的錯誤。升級到.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.
這發生在我身上,但我最後不得不升級我的EDMX到V3,所以按照反向這些步驟幫助我這樣做。謝謝! –
我一直假定「修改」鏈接只是打開XML進行修改。我不知道它實際上會嘗試修復xml命名空間。我想我已經手動完成了十幾次...> _ < –