By Adding the code that abhishek_singh provided me the timeout was resolved.
But I also added a thread so it could run seperate from the rest now.
protected void btnUpload_Click(object sender, EventArgs e)
{
if (excelUpload.HasFile)
{
string fileName = Path.GetFileName(excelUpload.PostedFile.FileName);
string fileLocation = Server.MapPath("~/App_Data/" + fileName);
excelUpload.SaveAs(fileLocation);
var thread = new Thread(() => Performthread(fileLocation, fileName));
thread.Start();
}
}
private void Performthread(string fileLocation, string fileName)
{
ExcelService.Upload(fileLocation, "BILLING", "tom");
File.Delete(Server.MapPath("~/App_Data/" + fileName));
_syncId = 0;
}