Question

Selvaons on Mon, 23 Jul 2012 11:37:59


while i am uploading file usinf console application i am getting error like "internal server error 500"

please help me 

its my server coding.

void Page_Load(object sender, EventArgs e) {
        HttpFileCollection hfc = Request.Files;
        foreach (string f in hfc.AllKeys)
        {
HttpPostedFile file = Request.Files[f];
file.SaveAs("c:\\inetpub\\test\\UploadedFiles\\" + file.FileName);
}
}


Sponsored