0
在我Application_Start
我有一個的RegisterRoutes方法,我稱之爲以下通話:C#MVC無法得到ignoreRoute工作(MiniProfiler仍顯示他們嗎?)
// Do not process any static files
routes.IgnoreRoute(
"{*staticfile}", new { staticfile = @".*\.(jpg|gif|jpeg|png|js|css|htm|html|htc)$" }
);
此外,我已經MiniProfiler配置我像下面這樣運行:
protected void Application_BeginRequest()
{
MiniProfiler.Start();
var profiler = MiniProfiler.Current;
using (profiler.Step("Application_BeginRequest"))
{
}
}
現在,當我啓動我的網站,我看到正在分析圖像:
對我來說,這似乎表明我的IgnoreRoute工作不正常,或圖像應該從未達到MiniProfiler狀態。我在這裏是不正確的,還是我做錯了什麼?