views:

129

answers:

1

I created a project as described here using Visual Studio 2010 and .NET 4 (Win7/x64). Once I've change the platform target to 'Any CPU' the sample project works. However, if try to generate a model from entity data model (right-click the model and select 'Generate Database from Model'), I get the following error.

Could not find the appropriate DbProviderManifest to generate the SSDL. The supplied provider invariant name 'System.Data.SqlServerCe.3.5' is not valid.

I have a reference to System.Data.SqlServerCe on my project.

A: 

It should work, but there are some extra steps that you need to take. See: http://blogs.msdn.com/b/stevelasker/archive/2008/10/22/privately-deploying-sql-server-compact-with-the-ado-net-entity-provider.aspx

Shiraz Bhaiji
I downloaded the sample project from the link you provided and upgraded it to VS2010. I had to update the DLL links in the AMD64 and X86 folders. Now I get the following compiler error.
Rubio
Error 175: The specified store provider cannot be found in the configuration, or is not valid. File: LocalData.edmx
Rubio
Same error when trying to generate database from model.
Rubio
try opening up your edmx file add see if there is any error messages. The problem may be related to the structure of your database
Shiraz Bhaiji
If you mean opening the edmx in VS model designer, then no, I don't get any errors.
Rubio
No open it in notepad and have a look at the xml
Shiraz Bhaiji
I'm not quite sure what you mean. The edmx is an XML file. What exactly am looking for? Is it valid XML? Yes! If I open the XML in VS XML editor, it show the same error 175.
Rubio