Entity Framework with EntityDataSource throws MetadataException when installed on Windows 2008 server

StackOverflow https://stackoverflow.com/questions/9800334

  •  25-05-2021
  •  | 
  •  

Question

I have a problem with installing a Web Application on a server which is using an EntityDataSource and the .NET Framework June CTP. I posted the question on the MSDN Forums but still have no answer: EF with POCO templates and DbContext throws MetadataException when installed on server

The following Exception is throwed when installing the application on a windows 2008 server with IIS 7 and when using an EntityDataSource in combination with the June CTP Framework which we need for using POCO and the DbContext.

System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Data.MetadataException: Schema specified is not valid. Errors: Library.csdl(2,9) : warning 0005: Could not find schema information for the attribute 'Namespace'. Library.csdl(2,34) : warning 0005: Could not find schema information for the attribute 'Alias'. Library.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. at System.Data.Metadata.Edm.EdmItemCollection.LoadItems(IEnumerable1 xmlReaders, IEnumerable1 sourceFilePaths, SchemaDataModelOption dataModelOption, DbProviderManifest providerManifest, ItemCollection itemCollection, Boolean throwOnError)

When we create a test project without the June CTP Framework it is working. When we do not use the EntityDataSource with the June CTP Framework it works too. We developed some months with this EntityDataSource so it's not easy to change the code and use something else.

Was it helpful?

Solution

Your server appears to have .NET 3.5 SP 1, and the CTP requires .NET 4. The schemata in the error message (2006-8) are EF 10 2009/11/edm are EF 4.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top