0
我有一個非常基本的Web應用程序,每兩分鐘運行一次存儲過程並以表格格式顯示數據。刷新WebApp偶爾返回Internet Explorer無法顯示網頁
它工作很好,除了在換班時的權利。
在這些時間內還有其他進程在相同的數據上運行,但不足以導致超時。事實上,我有sp設置只是返回那些時間的空白值,但問題依然存在。
不是每一次,而是每兩天一次,而不是刷新數據,IE會吐出一個'Internet Explorer無法顯示網頁',並保持該狀態直到刷新(F5)。
日誌中沒有任何內容,SQL分析器顯示sp運行時沒有問題。 sp在1秒內執行。
控制器
public ActionResult Desktop()
{
Response.AddHeader("Refresh", "120");
try
{
var dResults = db.VDMDisplayReporting();
return View(dResults.ToList());
}
catch (Exception ex)
{
return RedirectToAction("Fail", ex.ToString());
}
}
查看
@foreach (var item in Model)
{
<table width="20%" class="checkerboard" cellpadding="5" cellspacing="1" border="0">
<tr>
<tr>
<td style="background-color:Silver">
@Html.DisplayFor(modelItem => item.MachineId)
</td>
</tr>
<tr>
<td style="background-color: @item.YieldColor">
@Html.DisplayFor(modelItem => item.Yield)
</td>
</tr>
<tr>
<td style="background-color: @item.UptimeColor")>
@Html.DisplayFor(modelItem => item.Uptime)
</td>
</tr>
<tr>
<td style="background-color: @item.CycleColor">
@Html.DisplayFor(modelItem => item.Cycle)
</td>
</tr>
</tr>
</table>
}
你能更具體地瞭解什麼IE報告錯誤? – 2012-07-31 13:06:47