Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

I am getting endpoint not found error in WCF.


Below is my WCF web.config


<configuration>

<system.web>
<compilation debug="true" targetframework="4.0">

<system.diagnostics>
<sources>

propagateActivity="true">
<listeners> <add name="xml">


<listeners> <add name="xml">


<sharedlisteners>
<add initializedata="C:\logs\TracingAndLogging-service.svclog" type="System.Diagnostics.XmlWriterTraceListener">
name="xml" />

<trace autoflush="true">

<system.webserver>
<modules runallmanagedmodulesforallrequests="true">
<httpprotocol>
<customheaders>
<add name="Access-Control-Allow-Origin" value="*">
<add name="Access-Control-Allow-Headers" value="Content-Type">




<system.servicemodel>

<diagnostics>
<!-- Enable Message Logging here. -->
<!-- log all messages received or sent at the transport or service model levels -->
<messagelogging logentiremessage="true">
maxMessagesToLog="300"
logMessagesAtServiceLevel="true"
logMalformedMessages="true"
logMessagesAtTransportLevel="true" />


<behaviors>
<endpointbehaviors>
<behavior name="PushDataService.EndPtBehav">
<enablewebscript>


<servicebehaviors>
<behavior name="PushDataBehav">
<servicemetadata httpgetenabled="true">
<servicedebug includeexceptiondetailinfaults="false">




<servicehostingenvironment aspnetcompatibilityenabled="true">
<standardendpoints>
<webscriptendpoint>
<standardendpoint name="" crossdomainscriptaccessenabled="true">



<services>
<service behaviorconfiguration="PushDataBehav" name="PushDataService.PushData">
<endpoint address="" behaviorconfiguration="PushDataService.EndPtBehav" binding="webHttpBinding">
name="PushDataEndPt" contract="PushDataService.IPushData" />
<!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange">-->


<!--<client>
<endpoint behaviorconfiguration="EndPtBehav" binding="webHttpBinding">
bindingConfiguration="" contract="PushDataService.IPushData"
name="ClientEndPt" />
-->


<!--<system.webserver>
<modules runallmanagedmodulesforallrequests="true">
<directorybrowse enabled="false">
-->




Please let me know
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900