How to upload an image in folder with database in asp.net on remote server?
<p>I face this problem on uploading time:</p>

<blockquote>
  <p>Access to the path
  'D:\inetpub\vhosts\rajschool.com\httpdocs\Photo\3d_529 - Copy.jpg' is
  denied.</p>
</blockquote>

<p>My code for uploading image is:</p>

<pre><code>protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
    string imagefolder = "Photo";
    string savepath;
    string savefile;


    if (FileUpload1.HasFile)
    {
        savepath = Path.Combine(Request.PhysicalApplicationPath, imagefolder);
        savefile = Path.Combine(savepath, FileUpload1.FileName);
        FileUpload1.SaveAs(savefile);
        SqlDataSource1.Insert();
        lblmgs.Text = "successfully upload";

    }

}
</code></pre>
