Note that there are some explanatory texts on larger screens.

plurals
  1. PORequest format is unrecognized for URL unexpectedly ending in '/Convert' happens after 1-2 days
    primarykey
    data
    text
    <p>I'm calling a webservice using an Microsoft.XMLHTTP call:</p> <pre><code>var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("POST", "/xxx/Converter.asmx/Convert", false); xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xmlhttp.send("conversionFolder=" + escape(conversionFolder)); if (xmlhttp.status == 200) { xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async = "false"; xmlDoc.loadXML(xmlhttp.responseText); ... more stuff ... return str; } else { alert(xmlhttp.statusCode + " - " + xmlhttp.statusText); } </code></pre> <p>It all works fine when I remember to add the HttpPost protocol in the local web.config:</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;configuration&gt; &lt;appSettings/&gt; &lt;connectionStrings/&gt; &lt;system.web&gt; &lt;webServices&gt; &lt;protocols&gt; &lt;add name="HttpPost"/&gt; &lt;/protocols&gt; &lt;/webServices&gt; &lt;compilation debug="false"&gt;&lt;/compilation&gt; &lt;/system.web&gt; &lt;system.codedom&gt; &lt;/system.codedom&gt; &lt;!-- The system.webServer section is required for running ASP.NET AJAX under Internet Information Services 7.0. It is not necessary for previous version of IIS. --&gt; &lt;system.webServer&gt; &lt;/system.webServer&gt; &lt;/configuration&gt; </code></pre> <p>But on one production server it fails after running for 1-2 days. It works fine after the asp.net process has been recycled. It works for 1-2 days and then it fails with this:</p> <pre><code>Exception information: Exception type: InvalidOperationException Exception message: Request format is unrecognized for URL unexpectedly ending in '/Convert'. Request information: Request URL: https://xxx/xxx/converter.asmx/Convert Request path: /xxx/converter.asmx/Convert User host address: 195.50.35.4 User: extranet\kbk Is authenticated: True Authentication Type: Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 14 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(HttpContext context, String verb, String url, String filePath) at System.Web.Script.Services.ScriptHandlerFactory.GetHandler(HttpContext context, String requestType, String url, String pathTranslated) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) </code></pre> <p>Why does it wait for 2 days before failing? And what can I do to prevent it from failing? Has it something to do with the fact that this server runs in HTTPS mode?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload