Hello !! I am using below statement to connect with database and already include MyDB.sdf file in Application folder of my windows installer. SqlCeConnection con = new SqlCeConnection("Data Source="+ System.IO.Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location), "MyDB.sdf")); After build My .exe when i run it using shortcut on desktop, application working is stopped. why? Thank you
DataDirectory
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)