Note that there are some explanatory texts on larger screens.

plurals
  1. POASMX-service returns "500 error" while using POST-method
    primarykey
    data
    text
    <p>I have a problem with ASMX-service. If I use a POST-method, it returns error "500 - Internal server error". But if I use a GET-method, it works very fine. I viewed IIS logs and saw this situation:</p> <pre><code>2013-01-16 00:00:06 212.158.165.217 GET /service.asmx/GetStopSalesAndQuotes2 Login=xxxxx&amp;Password=xxxxx=&amp;checkPoint=2013-01-08T14:22:56Z 80 - 85.12.229.170 Mozilla/4.0+(compatible;+Windows+NT+5.1;+SV1);+ross-tur.ru;+8-800-100-99-30+(ext.+501); 500 0 0 140 2013-01-16 00:00:06 212.158.165.217 POST /service.asmx - 80 - 62.80.175.194 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+4.0.30319.296) 500 0 0 31 </code></pre> <p>I've looked for this problem and tried to resolve it.</p> <p>Firstly I inspected a web.config, but the necessary tags have been founded:</p> <pre><code>&lt;add name="HttpGet"/&gt; &lt;add name="HttpPost"/&gt; </code></pre> <p>Secondary I've tried to turn on the debug mode by adding some tags in web.config:</p> <pre><code>&lt;system.diagnostics&gt; &lt;trace autoflush="true" /&gt; &lt;sources&gt; &lt;source name="System.Web.Services.Asmx"&gt; &lt;listeners&gt; &lt;add name="AsmxTraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="local.log" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId" /&gt; &lt;/listeners&gt; &lt;/source&gt; &lt;/sources&gt; &lt;switches&gt; &lt;add name="System.Web.Services.Asmx" value="Verbose" /&gt; &lt;/switches&gt; &lt;/system.diagnostics&gt; </code></pre> <p>But the log has not been created. I've thought, that the application have not rights.</p> <p>I've tried to give admin rights by specifying an admin's login/pass for my site, but it has not resolved the problem and log still not created.</p> <p>The other ways I've tried to debug this error:</p> <ol> <li>Turned off custom errors mode and switched trace enabled on "true" state:</li> </ol> <blockquote> <pre><code>&lt;system.web&gt; &lt;customErrors mode="Off"/&gt; &lt;trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="false"/&gt; &lt;/system.web&gt; </code></pre> </blockquote> <ol> <li>Also tried to enable trace and policyTrace options:</li> </ol> <blockquote> <pre><code>&lt;microsoft.web.services2&gt; &lt;diagnostics&gt; &lt;trace enabled="true"/&gt; &lt;policyTrace enabled="true"/&gt; &lt;/diagnostics&gt; &lt;security&gt; &lt;timeToleranceInSeconds&gt;86400&lt;/timeToleranceInSeconds&gt; &lt;securityTokenManager type="Megatec.MasterService.TourMLLogic.PasswordProvider, ServiceComponents, Version=1.0.0.0, Culture=neutral" qname="wsse:UsernameToken" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/&gt; &lt;/security&gt; &lt;/microsoft.web.services2&gt; </code></pre> </blockquote> <p>But I've got no any result. I think, that there's an IIS configuration problems. Please, help me.</p> <p>P.S. Excuse my bad English =)</p>
    singulars
    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.
    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