I've Visual Studio 2015 on Windows 10. I'm working on a MVC web application which calls Web API 2. I always used IE as my defaultbrowser for debugging. Recently I received windows updates. The update history shows "Feature update to Windows 10, version 1703". After the updates I'm no longer able to debug my AJAX calls to the API. Here is what the console shows for edge and Chrome - "HTTP405: BAD METHOD - The HTTP verb used isnot supported". For IE 11 the console error is "SCRIPT7002: XMLHttpRequest: Network Error 0x80700013, Could not complete the operation due to error 80700013." This used to work before the windows update.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
2 Posts
Problem with debugging AJAX calls
Jun 07, 2017 06:10 PM|Composer Sols|LINK
I've Visual Studio 2015 on Windows 10. I'm working on a MVC web application which calls Web API 2.
I always used IE as my defaultbrowser for debugging. Recently I received windows updates. The update history shows "Feature update to Windows 10, version 1703".
After the updates I'm no longer able to debug my AJAX calls to the API.
Here is what the console shows for edge and Chrome -
"HTTP405: BAD METHOD - The HTTP verb used isnot supported".
For IE 11 the console error is
"SCRIPT7002: XMLHttpRequest: Network Error 0x80700013, Could not complete the operation due to error 80700013."
This used to work before the windows update.
Participant
1380 Points
608 Posts
Re: Problem with debugging AJAX calls
Jun 08, 2017 01:54 AM|JBetancourt|LINK
i use fiddler by telerik to inspect web traffic:
http://www.telerik.com/fiddler
It looks like you have a CORS issue in your application
Please remember to click "Mark as Answer" the responsES that resolved your issue.
None
0 Points
2 Posts
Re: Problem with debugging AJAX calls
Jun 08, 2017 11:41 PM|Composer Sols|LINK
Thank you JBetancourt.
Star
8670 Points
2882 Posts
Re: Problem with debugging AJAX calls
Jun 14, 2017 02:33 AM|Cathy Zou|LINK
Hi Composer Sols,
This looks like a session timeout in ASP.Net, not around jQuery / js. I got the same behaviour in a project a few months ago.
You can even change the timeout value, or handle these problems when you met them, for example by this way: Handling session timeout in ajax calls (here they alert when the error happened) or even this ASP.NET MVC Session Expiration (here they alert when the timeout will happened).
Best regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.