I'm trying to use System.Web;
to read and write into text document located on server from winform desktop application. First of all need to check if file exist. Not sure why, but System.Web does not works it is added for References as System.Web
string siteDir = "http://www.site.info/doc.txt";
if (File.Exists(Server.MapPath(siteDir)));
same with System.Web.HttpContext
System.Web.HttpContext.Current.Server.MapPath(siteDir);