7

MiniProfiler を使用して ASP.NET 4 Webform アプリケーションのプロファイルを作成しています。localhost では正常に動作しますが、IIS7 に展開すると次のエラーが表示されます。

System.Web.Routing.UrlRoutingModule does not implement IHttpHandlerFactory or IHttpHandler

これは私にエラーを与えるweb.config行です

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

この状況で私が何をすべきかについて何か考えがありますか?

4

2 に答える 2

0

最終的に、次の構成を使用することになりました。やり過ぎで一般的には推奨されないかもしれませんが、私は問題を解決しました

<module runAllManagedModulesForAllRequests="true"/>
于 2012-09-15T17:04:22.130 に答える