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
web-config asp.net-mvc-routing http-status-code-404 mvc-mini-profiler


source to share


No one has answered this question yet

See similar questions:

1
mvc mini profiler - IIS7 issue

or similar:

6
Mini-profiling results cannot be found when using "popup = 1" in querystring
4
Can I use the mini profiler for ASP.NET Web API and the results are still displayed in the URL?
4
Getting 404 error in / mini -profiler-resources / includes.js when deploying to server
2
enable mini profiler for specific users and roles only
2
Saving results in mvc mini profiler database as soon as something is profiled
2
How to get the Mini-Profiler webpage for services only
2
is there any mechanism for collecting and comparing mvc-mini-profiler results?
1
How to restrict access to / mini-profiler-resources / results-index per request
0
How to prevent posts in mini profilers / results in production?
0
List of profiling results for Mini Profiler sessions



All Articles
Loading...
X
Show
Funny
Dev
Pics