Can't connect to SQL Server CE database
问题 I have the following code, just to test connection: public void Test() { SqlCeConnection conn = new SqlCeConnection(@"Data Source=/Application/Database.sdf;"); try { conn.Open(); label1.text = "Connection!"; } catch (Exception ee) { label1.text = "No connection!"; } } When trying to connect to this database, the application throws an exception at conn.Open() saying SqlCeException was unhandled and nothing more. The exception message is blank, so I'm having a hard time figuring out what went