Greetings,
I need assistance on resolving a "is not a valid virtual path" error on my code below. The error occurs at:
"string path = MapPath(fname);" I'm new to VB.NET so any recommendations or suggestions would be most appreciated.
Thank you in advance.
protected void Page_Load(object sender, EventArgs e)
{
String strImageFileInfo = "C:\\000093480.tif"; //one page deed
//String strImageFileInfo = "C:" + Request.QueryString[0];
DownloadFile(strImageFileInfo, true);
}
private void DownloadFile(string fname, bool forceDownload)
{
string path = MapPath(fname);
string name = Path.GetFileName(path);
string ext = Path.GetExtension(path);
string type = "";
// ...
Go to the complete details ...