I installed the Stack Exchange MiniProfiler and the View Source shows that it displays the expected HTML. However, a small window with a detailed profile is not displayed in the corner - what could be wrong?
<script src="/v2/Scripts/jquery-1.6.1.min.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="/v2/mini-profiler-includes.css?v=1.7.0.0"> <script type="text/javascript" src="/v2/mini-profiler-yepnope.1.0.1.js"></script> <script type="text/javascript"> yepnope([ { test: window.jQuery, nope: '/v2/mini-profiler-jquery.1.6.1.js' }, { test: window.jQuery && window.jQuery.tmpl, nope: '/v2/mini-profiler-jquery.tmpl.beta1.js' }, { load: '/v2/mini-profiler-includes.js?v=1.7.0.0', complete: function() { jQuery(function() { MiniProfiler.init({ ids: ["025bbb91-9605-44b7-b33d-d8b196326dbc","2c74ce3e-8de6-4f8d-920a-e8708b22231b"], path: '/v2/', version: '1.7.0.0', renderPosition: 'left', showTrivial: false, showChildrenTime: false, maxTracesToShow: 15 }); }); } }]); </script>
And in my Global.asax.cs file:
protected void Application_BeginRequest() { if (Request.IsLocal) { MiniProfiler.Start(); } } protected void Application_EndRequest() { MiniProfiler.Stop(); }

EDIT: thanks to Sam's input, I tracked the problem using my .ajaxSetup () method. When it is commented out, the profile window is displayed again. But I do not understand why this is the problem:
$.ajaxSetup({ data: "{}", dataFilter: function (data) { var msg; if (data == "") { msg = data; } else if (typeof (JSON) !== 'undefined' && typeof (JSON.parse) === 'function') { msg = JSON.parse(data); } else { msg = eval('(' + data + ')'); } if (msg.hasOwnProperty('d')) { return msg.d; } else { return msg; } } });
source share