mvc mini profiler (1.4) & IIS

旧街凉风 提交于 2019-12-04 03:46:25

问题


The solution works great with cassini but as soon as I make it run into IIS (7.5 on Windows 7 / 64), it stops working. All js & css file are never downloaded and the script fails. I looked into the MiniProfilerHanler, the GetHttpHandler method is called for each required js & css but the ProcessRequest method never runs.

The same behavior is observed using the sample.mvc project that goes along with the mini profiler sources.


回答1:


this is an older question but if you are still trying to get this to work try adding this to your web.config

<system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>

not really the best solution but it works




回答2:


I went to Program/Feature control pannel and clicked add remove windows feature. There I saw that under IIS, ASP.Net was not selected (all my sites worked like a charm) and checked it.. and Voila ! Don't ask ;-)



来源:https://stackoverflow.com/questions/6555533/mvc-mini-profiler-1-4-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!