2016-10-21 3 views
1

그래서 WebForms 웹 사이트에 MiniProfiler (https://github.com/MiniProfiler/dotnet)를 사용하려고합니다. 내가 한 것은 :MiniProfiler 및 WebForms

  1. 이 <% = StackExchange.Profiling.MiniProfiler.RenderIncludes를 추가 Global.asax.cs (Begin_request 및 END_REQUEST 이벤트)에 MiniProfiler 초기화를 추가

  2. 을 nuget 사용하여 패키지를 설치() web.comfig에서 %> 문

  3. 세트

그리고 아직도 MiniProfiler 작동하지 않습니다. 나는 닷넷 FW 4.5.1를 사용 IIS8 및 Intergated 모드 :

더 많은 정보를 찾을 수 없음 - 간단한 문제 해결은 내가

http://localhost/mycoolsite/mini-profiler-resources/results 404.0를 참조, 해당 페이지 (크롬 개발 도구에서) 나는 MiniProfiler를 볼 것으로 예상 보여줍니다 (앱 풀)

어떤 아이디어 나에게 도움이 될만한게 있나요?

답변

1

최근에 블로그 (특히 the process of getting MiniProfiler working in a hybrid WebForms/MVC application)를 블로그에 게시했습니다.

<%= StackExchange.Profiling.ClientTimingHelper.InitScript %> 

말했다 심지어 그 라인없이, (내가 뭘 찾았는지에 비해) 누락있는 것처럼이 수행하는 것이 당신이 설명 한 단계를 바탕으로

, 그것은 본다 나는 서버 쪽 타이밍과 MiniProfiler UI를 볼 수 있으므로 귀하의 web.config 항목이 잘못되었다고 생각됩니다.

확인 당신이 내 configuration>system.webServer>handlers에 넣고했는지 확인하는 방법 web.config :

당신은뿐만 아니라 확인하실 수 있습니다 다른 몇 가지가 있습니다
<add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /> 

:

  1. 보고있는 페이지가 web.config 인 하위 폴더에 있거나 handlers 항목이 추가 된 폴더와 <clear />s handlers 사이에있는 폴더 사이에있는 폴더에 있습니까?
  2. 응용 프로그램에 MiniProfiler 리소스 요청을 캡처하고 404를 반환 할 수있는 다른 것이 있습니까?