0
Answer

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

Sumit Kumawat

Sumit Kumawat

12y
2.5k
1

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