This is the common error while working with WCF service. Reason for this is there in our app.config file.
While using intellisence provided by Microsoft visual Studio we may has to select "httpGetBinding" instead of "httpGetEnabled". please look below codes,
Resolved Corrected Lines as below, Error line of code as highlighted below
<behaviors>
<serviceBehaviors>
<behavior name="mexBehavior">
<serviceMetadata httpGetBinding="True" />
</behavior>
</serviceBehaviors>
</behaviors>
Resolved Corrected Lines as below,
<behaviors>
<serviceBehaviors>
<behavior name="mexBehavior">
<serviceMetadata httpGetEnabled="True" />
</behavior>
</serviceBehaviors>
</behaviors>
If you have any other reason please mention that in Comments. Thanks for your Visit.
Spot on, thank you very much.
ReplyDelete