I am trying to access a file on another server from my application. Out of application, I am able to access the files from windows explorer, but when I am using the same path in my application, I am getting the error "Could not find a part of the path F:\Unknown\ABC\DEF\MNO\Fren.jpg".
My code goes here..
String FilePath;
FilePath = Request.FilePath("\\\\ABC\\DEF\\MNO\\Fren.jpg");
System.Net.Mail.Attachment a = new System.Net.Mail.Attachment(FilePath);
what is the problem in my code?