Author: Synthetikk242 | Posted on: 5/15/2010 11:34:18 PM | Views : 343

I've got a project that's going to go on a dedicated server environment. I'll be uploading images to the server, but saving them outside of the virtual folder path of the actual website, like so:

protected void UploadImage_Click(object sender, EventArgs e)
{
    string newFile = "C:\\Images\\myImage.jpg";
    this.cb_fuMainImage.PostedFile.SaveAs(newFile); // from webform <input id="cb_fuMainImage" type="file" runat="server" />
} 

Now, this works fine on my home computer. Is there anything I'll need to do with IIS or ASP.NET (possibly in web.config) for this to work properly on a production machine? Settings or permissions that may need changing?...

It will be on Window 2003 with IIS6 and ASP.NET 3.5 SP1. 
...

Go to the complete details ...