Hi All,
I am doing .Net 2.0 web application. It allows supplier to upload file to the web server A. I got no problem with the upload.
Then, I have another web application sitting in web server B which is only accessible by internal staffs. This web application in web server B allows staff to download files attached by supplier in the web server A. I encountered problem when attempt to download file from web server A. The error message is "http://webserverA/directory/filename.xxx is not a valid virtual path" happened at the line "Response.TransmitFile". Can someone here help me on this. Your advise is highly appreciated.
Here is my code to download file:-
Response.Clear();
Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + litDisplayFileName.Text.Trim());
Response.TransmitFile(Server.UrlEncode("http://webserverA/directory/&q ...
Go to the complete details ...