开发者

Accessign Local Sql Ce with a Local Wcf Service

开发者 https://www.devze.com 2023-01-22 03:02 出处:网络
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

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

精彩评论

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