how to download a file from server, using asp.net website
<p>I am trying to download a file from the server, I am getting access denied error, the path is different from what I am giving as input,   how can I pass the correct path</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
{
    string FileLoc = @"~/Upload/1984_Apple_Macintosh_Commercial.mp4";
    DownloadData(FileLoc);
}

public void DownloadData(string address)
{
    var path = Path.Combine(Request.PhysicalApplicationPath, address);
    using (var client = new WebClient())
    {
        client.DownloadFile(path, "1984_Apple_Macintosh_Commercial.mp4");
    }  
} 
</code></pre>

<blockquote>
  <p>Access to the path 'C:\Program Files (x86)\Common Files\Microsoft
  Shared\DevServer\10.0\1984_Apple_Macintosh_Commercial.mp4' is denied.</p>
</blockquote>

<p>Updated Code</p>

<pre><code>protected void Page_Load(object sender, EventArgs e)

{
    if (!IsPostBack)
    {
        string FileLoc = @"c:\Files\1984_Apple_Macintosh_Commercial.mp4";
        DownloadData(FileLoc);
    }
}
public void DownloadData(string address)
{
    var path = Path.Combine(Request.PhysicalApplicationPath, address);
    WebClient Client = new WebClient();
    Client.DownloadFile(path, @"c:\Files\1984_Apple_Macintosh_Commercial.mp4");
}
</code></pre>
