Http Status Code 12031 Owa Component: ajax Version: 1.4.2 Keywords: ajax, ie, 12031 Cc: sead.kolic@… Blocked by: Blocking:
Error 12031 The Connection With The Server Was Reset
Description Hi, I have an issue with my script in IE8 when calling async ajax to my server side code. The 12031 error_internet_connection_reset server side code works fine and the script is fully working in Chrome and Firefox. The issue only occurs in Internet Explorer. This only happens sometimes, maybe each second/third time I call my http://forums.asp.net/t/1130625.aspx?The+status+code+returned+from+the+server+was+12031 function. The error code I get is 12031: Internet Client Error: Connection Reset. What I understood from other sites, the ajax result returns, but the script throws an exception before completing the success handler. Even if I set: dataType: 'json' and contentType: 'applications/json' the same error occurs. Is is possible to provide a fix or a workaround for this issue? Thanks in advance. Regards, Sead The calling https://bugs.jquery.com/ticket/6922 script: var message = ''; ExecuteAction('myurl.php', 'fillgebruikersgroepen', message, function(data, textStatus, XMLHttpRequest) { $(container).html(data); }, function(xhr, ajaxOptions, thrownError) { alert(thrownError); } ); The method: ExecuteAction: function(url, action, message, success, error) { jQuery.ajax({ type: "POST", cache: false, async: true, url: url + "?action=" + action, dataType: "html", data: message, success: success, error: error }); } Oldest first Newest first Threaded Comments only Change History (1) comment:1 Changed 6 years ago by dmethvin Resolution set to invalid Status changed from new to closed This isn't a bug report yet, so I would advise that you ask for help on a forum and provide a complete test page that can reproduce the problem. http://forum.jquery.com As you mentioned, error 12031 is coming from the Winsock stack and means "connection reset". If you have any third-party toolbars or firewall software you should probably remove them. But again, the jQuery bug tracker is not an ideal place to troubleshoot a general problem like this. Note: See TracTickets for help on using tickets. Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed Context Navigation Next Ticket → Copyright 2013 The jQuery Foundation Hosting provided by Media Temple CDN provided by MaxCDN Download Documentation Tutorials Bug Tracker Discussion
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://stackoverflow.com/questions/3465941/jquery-ajax-call-to-asp-net-mvc-jsonresult-gives-12031-error-json-webservice-wo site About Us Learn more about Stack Overflow the company Business Learn more http://errortools.com/windows/fix-error-12031/ about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up JQuery.Ajax call status code to Asp.Net MVC JsonResult gives 12031 error, Json webservice works fine up vote 1 down vote favorite I have the following 2 jQuery Ajax calls. The first is a call to a Asp.Net Json Webservice and always works. The second is a call to a ASP.Net MVC action that return an json result. This call always fails with Status=12031 the first time the page http status code is loaded. The responseText is empty. After a refresh de second call usually works fine. jQuery(document).ready(function () { jQuery.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/Services/MenuService.svc/Get", dataType: "json", data: '{}', success: function (data) { jQuery.map(data.d, function (item) { jQuery("#menu").append('
' + item.Link + '') }); }, error: function (XMLHttpRequest, textStatus, errorThrown) { if (XMLHttpRequest.responseText != '') { alert(XMLHttpRequest.responseText); } } }); jQuery.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/Menu/Get", dataType: "json", data: '{}', success: function (data) { jQuery.map(data, function (item) { jQuery("#menu").append('' + item.Link + '') }); }, error: function (XMLHttpRequest, textStatus, errorThrown) { if (XMLHttpRequest.responseText != '') { alert(XMLHttpRequest.responseText); } } }); }); Does anyone knows why I get the 12031 Status on the second call? json asp.net-mvc-2 jquery share|improve this question asked Aug 12 '10 at 8:35 Wim 1,605718 Same problem here, default VS webserver (and IIS Express doesn't work on my machine). VS2012. –Chris Moschini Jan 8 '13 at 8:55 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted This seems to be an issue ith the default Visual Stit? Error 12031 indicates that the connection with the server has been reset or is not properly connected. In other words, it signifies that the File Transfer Protocol which is the standard network protocol that is used to transfer files from one host to another over the internet is either reset or not working properly. For example if you are using a wireless adapter, then you may experience this error code when the adapter loses its association with the access point. The error code is often displayed in the following format: "ERROR_INTERNET_CONNECTION_RESET" "Cannot Connect to the FTP Server" Solution Download Available to Completely Repair Error 12031 Recommended: Download the Automatic Repair Utility to correct this and other PC performance issues. Download Certified safe, virus free download. Error Tools Editor's Choice. Error Causes Though the error 12031 is largely caused by poor internet connection and failure to obtain files from the FTP server however, sometimes the error may be caused by invalid registry entries and outdated drivers. Furthermore, it may also be a Firewall issue. Further Information and Manual Repair To resolve this issue on your system, we have listed down the best and easy DIY solutions. These solutions are simple to perform and do not require any kind of technical expertise or knowledge. Just follow the steps and you will be able to resolve it in a couple of minutes. Solution 1 : Disable Firewall If you are unable to connect to the server and you encounter the error code 12031 on your system, then to resolve this issue, disable Firewall on your PC. Solution 2 : Reset IE (Internet Explorer) Settings This error is typically experienced by IE7 users. If you can’t access some websites in Internet Explorer and you come across 12031 error code, then try resetting your IE settings. To do this, open Internet Explorer, click on tools and then click on Internet Options. Now