Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Endpoint Configuration Issue
    primarykey
    data
    text
    <p>I'm getting the following error when my ASP.NET 4.0 site loads, and it's because of my WCF service settings in the <code>web.config</code> file (I'm just not enough of a WCF expert and Google isn't helping :)):</p> <blockquote> <p>The endpoint at '[Path to my Service.svc]' does not have a Binding with the None MessageVersion. 'System.ServiceModel.Description.WebScriptEnablingBehavior' is only intended for use with WebHttpBinding or similar bindings.</p> </blockquote> <p>I was using <code>webHttpBinding</code> but was getting the following error, so now I'm using <code>basicHttpBinding</code> after <a href="http://blogs.msdn.com/b/drnick/archive/2007/03/23/preventing-anonymous-access.aspx" rel="nofollow">following the advice of this post</a>:</p> <blockquote> <p>Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.</p> </blockquote> <p>Anyways, here's the relevant info from my web.config. Please help!</p> <pre><code>&lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="ABC.ProjectName.Web.ServiceBehavior"&gt; &lt;serviceDebug httpHelpPageEnabled="true" includeExceptionDetailInFaults="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;endpointBehaviors&gt; &lt;behavior name="ABC.ProjectNameDell.Web.ServiceBehavior"&gt; &lt;enableWebScript /&gt; &lt;/behavior&gt; &lt;/endpointBehaviors&gt; &lt;/behaviors&gt; &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" /&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding name="webHttpBinding_AnonymousDisabled" &gt; &lt;security mode="TransportCredentialOnly"&gt; &lt;transport clientCredentialType="Windows" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;services&gt; &lt;service name="ABC.ProjectName.Web.AjaxService" &gt; &lt;endpoint address="/" behaviorConfiguration="ABC.ProjectName.Web.ServiceBehavior" binding="basicHttpBinding" contract="ABC.ProjectName.Web.AjaxService" /&gt; &lt;/service&gt; &lt;/services&gt; &lt;/system.serviceModel&gt; </code></pre>
    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.
    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