简体   繁体   中英

Accessign Local Sql Ce with a Local Wcf Service

I am using Sync Framework 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

您必须使用本地文件路径,而不是数据源的http路径

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM