2012-07-18 69 views
0

我無法從我的項目中卸載MiniProfiler。它總是給我這個錯誤消息「Microsoft JScript運行時錯誤:'MiniProfiler'未定義',並將動態JavaScript代碼插入到我的HTML頁面。當我按下瀏覽器的後退按鈕時,它在IE9上。MiniProfiler卸載錯誤

請幫忙。

回答

0

如果您添加下面的代碼行到你的web.config文件應該整理出來的問題:

<system.webServer> 
    ... 
    <handlers> 
     <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" 
     type="System.Web.Routing.UrlRoutingModule" 
     resourceType="Unspecified" 
     preCondition="integratedMode" /> 
    </handlers> 
    </system.webServer> 

我使用MiniProfilerMVC 4時發現確切的同樣的錯誤應用。這爲我修好了。欲瞭解更多信息,請查看MiniProfiler論壇:

http://community.miniprofiler.com/permalinks/113/microsoft-jscript-runtime-error-miniprofiler-is-undefined