i can't get the mobile app to make a connection from the app.exe.config but if i hard code the DB path it connects. ConfigurationMa nagerCE is a seperate class
and here is the connection coding
whats wrong with connection coding?
Code:
app.config.exe
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="MobileDBPath" value="\Program Files\Mobile\qxAsset.sdf" />
<add key="WebService" value="http://JM-QwixWHv2/asset/SyncService.asmx" />
<add key="CSVPaths" value="\Program Files\Mobile" />
</appSettings>
</configuration>
Code:
SqlCeConnection myConn = new SqlCeConnection();
string strConn = ConfigurationManagerCE.AppSettings["MobileDBPath"].ToString();
myConn.ConnectionString = strConn;
myConn.Open();