Trying to solve this error "The underlying provider failed on Open."
===

I downloaded the C# code from link, http://code.msdn.microsoft.com/WPF-Databinding-in-Visual-5a9c9bb3

It's compiled successfully and created DB as suggested.

Launch the application without changing anything in the source code/database and click the 3rd button "Simple Data Grid" I get error, "The underlying provider failed on Open."

Error when watched the name QUERY:
		ConnectionString	"name=OMSEntities"	string
		ConnectionTimeout	15	int
		Database	""	string
		DataSource	".\\sqlexpress"	string
+		ServerVersion	'(((((System.Data.Objects.ObjectQuery)(query))).Context).Connection).ServerVersion' threw an exception of type 'System.InvalidOperationException'	string {System.InvalidOperationException}
		State	Closed	System.Data.ConnectionState


I noticed, the database value is not set in OMSModel/OMSEntities
Please help me in solving this issue.

I use VS 2010, SQLServerExpress 2008

Thank you for your time and help!

Thanks,
NN. Sasikumar