我正在運行一個umbraco 7的實例。但我似乎無法設置miniprofiler來使用它。Miniprofiler和umbraco
設置這對我的Global.asax:
protected void Application_BeginRequest()
{
if (Request.IsLocal)
{
MiniProfiler.Start();
}
}
protected void Application_EndRequest()
{
MiniProfiler.Stop();
}
也被定義在web.config中的處理程序:
<add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
任何幫助是真正的讚賞。
在Umbraco 7中,至少你不需要'appSettings'鍵 - 你只需要確保在'web.config'文件的''元素上設置'debug =「true」'' 。 –
我想你還需要將'EnableMiniProfiler'的設置設置爲true,否則你將無法使用mini Profiler。 – ProNotion