return this.View("Index",model) (データベース処理後) で問題が発生し、80Mb ファイルをアップロードするとブラウザが更新されます。コードは小さなファイルで正常に動作します。このコードは、w3wp.exe に接続されたデバッガーを使用して 80Mb ファイルをアップロードし、手動でステップ実行するときにも機能します。複数のブラウザーを試しましたが、すべてのブラウザーで同じ問題が発生しました。
[HttpPost]
public ActionResult Index(ImportDataViewModel model)
{
string importFileLoc = string.Empty;
if (Request.Files.Count != 0)
{
importFileLoc = this.SaveTempFile(Request.Files[0]);
}
if (!this.ValidateImportModel(model))
{
model.SystemNames = this.GetSystemNames().SetSelected(model.SelectedSystem);
return this.View(model);
}
// Do Database and other data processing here
if (!ModelState.IsValid || model.ContainsWarnings)
{
model.SystemNames = this.GetSystemNames(model.SelectedSystem);
return this.View("Index", model);
}
return this.RedirectToAction("Index");
}