Sumit Kumawat

Sumit Kumawat

  • NA
  • 454
  • 415.9k

The path is not valid. Check the directory for the database in SqlCE

Oct 26 2012 3:22 AM

Hi all,

i am creating one window service which will read database entry and according to info it will do upload and downloading.

so for connection string i am giving this below path :-

 string filePath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Test\" + "CampUCTDB.sdf";

this connection string is running good in my normal C# app from where i am inserting the information but its giving me error when i am using this in my window service.

below error is coming while reading from Window Service:-

"The path is not valid. Check the directory for the database"

Thanx plz replay soon


sumitk