Skip to content Skip to sidebar Skip to footer

Ajax Call Doesn't Hit Breakpoint But Continues To Success Function

I have this ajax call. This is the first time I'm experiencing this problem. First, the break point on my action is not being hit. Second, the success function is being executed. T

Solution 1:

More than likely a silent exception is being raised. I also encountered this exact same problem. It is worth noting that, not all exceptions will trigger a run-time error, from the browser/client it may appear that a valid return type has been returned. In my case, I was able to use the Intellitrace feature of Visual Studio to sniff out the following silent exception:

"The JSON request was too large to be deserialized"

That gave me the clues I needed to fix the issue via this other Stack Overflow response

I suggest trying to use the Ultimate version of Visual Studio which comes with Intellitrace to see if some similar exception is interfering with your server side code and ultimately tricking the client into thinking a valid response was returned.

Best of luck

Solution 2:

Try specifying the url like this:

url:'../Reports/GetStoreFranchiseList?franchiseId=' + franchiseId,

OR

url: '@Url.Action("GetStoreFranchiseList","Reports")' + '?franchiseId=' + franchiseId,

Post a Comment for "Ajax Call Doesn't Hit Breakpoint But Continues To Success Function"