Publish to mini-profiler gives 404 results, but only on live deployed site

I am having problems getting POST results from MiniProfiler after page load.

I've tried GET and it works. But POST returns 404 error as if it was looking for a static file.

shot of error

Any help or hints as to what I can try would be appreciated.

Here's what I was looking at right now:

These are not my routes

The GET / POST problem would make me suspect a problem with my routes - except ...

This issue only occurs on a real server. Local routing works fine.

It could be: runAllManagedModulesForAllRequest?

Most of the things I've read suggest setting this to true. However, my problem seems to contradict this.

The problem occurs when runAllManagedModulesForAllRequest="true"

set to true and commits when set to false. I would like it to be set to true because I am not knowledgeable enough to change this default.

Adding a handler didn't help

Other resources like this one (at the bottom of the MP main page) suggest adding this line to system.webServer.handlers in web.config.

As I understand it, this should allow MP to run even if runAllManagedModulesForAllRequests is set to false. It had no effect for me.

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

      

But could there be a handlers section in Web.Config?

I have no particular reason to think that this is ...

I just don't quite understand what it does and am wondering if that might explain the difference between local and deployed versions.

<handlers>

  <remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
  <remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
  <remove name="ExtensionlessUrlHandler-Integrated-4.0" />
  <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" />
  <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" />
  <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" />

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

      

+3


source to share





All Articles