Hi friends ,
I have done a web project ( using C# + SQL CE + ASP.NET )where it does few manupulation with .sdf file and results are displaye via ASP.net page . While i started working I hardcoded the path of the connection string and worked in my system . Now I want this database to be residing inside my server page.
How do i get the working directory( localhost) so that i can put that in connection string ?
I tried using
System.Environment.CommandLine but it throws me a error saying
"Format of the initialization string does not conform to specification starting at index 98." The outcome of System.Environment.CommandLine is
Data Source= "C:\Program Files\Common Files\Microsoft Shared\DevServer\9.0\WebDev.WebServer.EXE" /port:1438 /path:"C:\Documents and Settings\xxx\Desktop\Project\yyy\Deploy\EMSWEB\Back010\WEB\WEB" /vpath:"/WEB"/tEST.sdf;Persist Security Info=True;
Any idea ???