Page 1 of 1

ProviderManifest Instance

Posted: Sat 26 Jan 2013 23:01
by mhsimkin
When I follow the "Entity Framework Tutorial Database-First" I get an error trying to compile the model.

The error is: "The provider did not return a ProviderManifest instance. Could not determine storage version; a valid storage connection or a version hint is required."

Why am I getting this? What is not configured correctly?

I started by creating a brand C# console application project for .Net 3.5.

Thank you for your help.

- marc

Re: ProviderManifest Instance

Posted: Mon 28 Jan 2013 09:03
by Shalex
Are you working with SQL Server 2012? There is a bug in the current public version of Entity Developer: provider manifest token is not determined correctly when creating the EF model for Microsoft SQL Server 2012 if the "Entity Framework version" property of the EF model is not set to EFv6. The fix will be included in the next public build.
A workaround for Entity Developer v 5.0.28: when the model is created, open it with text editor (e.g.: XML Editor in Visual Studio) and change the value of ProviderManifestToken XML attribute from "2012" to "2008", save the file.

If this is not the case, specify the name and version of your database server.

Re: ProviderManifest Instance

Posted: Mon 28 Jan 2013 09:40
by mhsimkin
While I'm trying to generate the model on SQL 2010, the staging servers are 2008 and the production servers are 2005.

I will try the work around you have suggested.

Thanks

marc

Re: ProviderManifest Instance

Posted: Mon 28 Jan 2013 10:30
by mhsimkin
One quick question, what file am I opening? The EDML another file?

Thanks

marc

Re: ProviderManifest Instance

Posted: Tue 29 Jan 2013 08:57
by Shalex
Please open the *.edml file with a text editor and replace "2012" with "2008".

Re: ProviderManifest Instance

Posted: Mon 25 Feb 2013 15:24
by Shalex
The bug with provider manifest token determined incorrectly when creating the model for Microsoft SQL Server 2012, if the "Entity Framework version" property of the model is not set to "Entity Framework 6.0", is fixed in the latest (5.0.43) version of Entity Developer: http://forums.devart.com/viewtopic.php?f=32&t=25825.