开发者

Accessign Local Sql Ce with a Local Wcf Service

I am using Sync Framewo开发者_Go百科rk in SL App to sync Sql Server and local SqlCe DB.

Having problem in connecting to Sqlce. Getting an Exception here

new SqlCeConnection("http://localhost/Sample.sdf");

Error:

ArgumentException was unhandled by user code. The connection object is not valid. Cannot create a new instance of the connection object."

Thanks


You must use a local file path, not an http path for the data source

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜