I have an URL that is taken in web.config i;e.,
<add key="FromLocation" value="http://198.12.16.1/"/>
and in the c# code
NameValueCollection loc = (NameValueCollection)ConfigurationManager.GetSection("EmailConfiguration");
string urlPath = loc["FromLocation"];
string fileLocation=urlPath + @"\SampleText\sample.txt;
my requirement is like above
but it is not recognising as filelocation path , if i use
if (File.Exists(fileLocation))
{
}
please help me..