Note that there are some explanatory texts on larger screens.

plurals
  1. POHTTPHandler and svc
    text
    copied!<p>I've got an existing web application, that is installed on several machines. script clients and .net clients consume ".asmx" services through one machine, that routes all calls to other machines.</p> <p>Client ----> |Website \ Virtual directory(HttpHandler)| ----> |Other server \ real .asmx|</p> <p>I added a new .svc service that does the same functionality, and added a handler for it (directory's config):</p> <pre><code>&lt;system.webServer&gt; &lt;handlers&gt; &lt;add name="MY_ASMX" verb="*" path="*.asmx" type="MY.AO.HttpProxy, Astea.AO.HttpProxy" resourceType="Unspecified" preCondition="integratedMode" /&gt; &lt;add name="MY_ASPX" verb="*" path="*.aspx" type="MY.AO.HttpProxy, Astea.AO.HttpProxy" resourceType="Unspecified" preCondition="integratedMode" /&gt; &lt;add name="MY_WSDL" verb="*" path="*.wsdl" type="MY.AO.HttpProxy, Astea.AO.HttpProxy" resourceType="Unspecified" preCondition="integratedMode" /&gt; &lt;add name="MY_SVC" verb="*" path="*.svc" type="MY.AO.HttpProxy, Astea.AO.HttpProxy" resourceType="Unspecified" preCondition="integratedMode" /&gt; </code></pre> <p></p> <p>while asmx request are routed fine, my new .svc on the end server does not get called, and even the Httphandler is skipped. if i call the .svc directly on the other machine it works.</p> <p>the error i get is:</p> <pre><code>WebHost failed to process a request. Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/26458746 Exception: System.Web.HttpException (0x80004005): The service '/Mysite/MyDirectory/settings.svc' does not exist. ---&gt; System.ServiceModel.EndpointNotFoundException: The service '/Mysite/MyDirectory/settings.svc' does not exist. </code></pre> <p>I already tried the folowing</p> <ol> <li>add "buildProviders" to compilation section that removes .svc</li> <li>Click on MimeTypes and enter “.svc” and “application/octet-stream” and save</li> <li>add a handler :</li> </ol> <p>nothing helps, http handler is not being called</p> <p>p.s. Im working with AppPool .net 4.0 Integrated</p>
 

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