문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top