Frage

I'm currently using VS2012 Express, writing in C#, and targeting WP8. My testing is being done with the emulator.

I've been following the example here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202860(v=vs.105).aspx#BKMK_UsingtheDatabase

My problem is, every time I try to instantiate a DataContext object (well, my derived class) I get a NotSupportedException in System.Data.Linq.ni.dll. The line throwing the exception is the constructor calling base(ConnectionString).

Any idea what I'm doing wrong, or how I can get more information to help me sort this out?

War es hilfreich?

Lösung

Apparently db files can only use SDF extensions. When I modified the name of my data file to use .SDF, everything worked fine.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top