Post to mini-profiler-results gives a 404 but only on live deployed site <p>I'm having some problems getting the POST results from MiniProfiler after the page has loaded. </p> <p>I've tried a GET, and that works. But the POST returns a 404 error as if it were looking for a static file.</p> <p><img src="https://i.stack.imgur.com/KtgCL.png" alt="shot of error"></p> <p><em>Any help or hints as to what I can try next would be much appreciated.</em></p> <p>Here's what I've looked at so far:</p> <p><strong>It's Not My Routes</strong></p> <p>The GET/POST issue would lead me to suspect a problem with my routes - except... </p> <p>This problem only occurs on the live server. Locally, the routing runs fine. </p> <p><strong>It Might be: runAllManagedModulesForAllRequest?</strong></p> <p><a href="http://stackoverflow.com/a/8011182/1778169">Most things I've read</a> suggest setting this to true. However my problem seems to contradict this. </p> <p>The problem occurs when <code>runAllManagedModulesForAllRequest="true"</code> set to true, and is fixed when set to false. I would like to keep it set to true because I'm not knowlegable enough to change that from the default setting. </p> <p><strong>Adding a Handler Didn't Help</strong></p> <p>Other resources, <a href="http://miniprofiler.com/" rel="nofollow noreferrer">like this one (at the bottom of MP's home page)</a>, suggest adding this line to system.webServer.handlers in web.config. </p> <p>As I understand it, this should allow MP to run even if runAllManagedModulesForAllRequests is set to false. For me, it has had no effect either way.</p> <pre><code>&lt;add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" /&gt; </code></pre> <p><strong>But Could The handlers Section in Web.Config be Related?</strong></p> <p>I have no particular reason to think it is... </p> <p>I just don't fully understand what it's doing and wonder if this could account for the difference between local and deployed versions. </p> <pre><code>&lt;handlers&gt; &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /&gt; &lt;remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /&gt; &lt;remove name="ExtensionlessUrlHandler-Integrated-4.0" /&gt; &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /&gt; &lt;add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /&gt; &lt;add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /&gt; &lt;add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="" /&gt; &lt;/handlers&gt; </code></pre>