mishrsud / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

Getting 404s on Ajax Callbacks #83

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Install mvc mini profiler from nuget
2.add Application_BeginRequest/EndRequest methods to start/stop the profiler
3.create a page with an ajax call back
4.load the page, the first "chiclet" displays correctly after the page is loaded
5.My subsequent ajax callback(using $.get(...)) returns with 200 OK
6.the mini profiler attempts to get the profile info based on the "$.get()" 
from the server with a callback but fails with a 404

What is the expected output? What do you see instead?
I expect to get the second "chiclet" for the ajax callback, but instead I get a 
404

What version of the product are you using? On what operating system?
Win2k7 x64, ASPNET MVC3(IIS hosted), jQuery 1.6.2, MvcMiniProfiler 1.7.0.0, 
EF4.1

Please provide any additional information below.

In global asax I have the standard App Begin/End Request Handlers:

        protected void Application_BeginRequest()
        {
            if (Request.IsLocal) { MiniProfiler.Start(); } 
        }

        protected void Application_EndRequest()
        {
            MiniProfiler.Stop(); 
        }

Usage of $.get() looks like this:

$.get("job/list", null, function (data){ //handled data... });

See screenshot.

There must be something silly I am missing.

Thanks,

Dan

Original issue reported on code.google.com by dan.meie...@gmail.com on 3 Aug 2011 at 2:46

Attachments:

GoogleCodeExporter commented 8 years ago
Correction to above, OS is Win7 x64

Original comment by dan.meie...@gmail.com on 4 Aug 2011 at 6:55

GoogleCodeExporter commented 8 years ago
Also, just to confirm, I do have this:

<system.webServer> 
   <modules runAllManagedModulesForAllRequests="true"/> 
</system.webServer> 

....in my config

Original comment by dan.meie...@gmail.com on 4 Aug 2011 at 10:47