I can upload a .xlsx file on my website running locally but it 404's after publishing to Azure. ASP.Net/webforms; C#;
"The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
Any ideas would be appreciated.
if (!this.FileUpload1.FileName.Equals("ActionFile.xlsx"))
{
this.tbxAdminStatus.Text = "Missing input file ActionFile.xlsx";
return;
}
else
{
// Upload file
fileLoc = Server.MapPath("~/Upload/" + his.FileUpload1.PostedFile.FileName);
try
{
this.FileUpload1.PostedFile.SaveAs(fileLoc);
this.tbxAdminStatus.Text = "File ActionFile.xlsx Uploaded";
}
catch (Exception ex)
{
Response.Write("Error: " + ex.Message);
}
}