How to fix error: "WCF REST end points are not found"?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Avinash Reddy
    New Member
    • Sep 2010
    • 4

    How to fix error: "WCF REST end points are not found"?

    I have a WCF(REST) Service in the view mark up i added factory attribute like this:

    Code:
    Factory="System.ServiceModel.Activation.WebServiceHostFactory
    
    in web.config i have ServiceModel tag like this:
    
    <system.serviceModel>
        <services>
          <service name="distasio_wcf.DistasioWcfService" behaviorConfiguration="distasio_wcf.DistasioWcfServiceBehavior">
            <endpoint address="" binding="webHttpBinding" contract="distasio_wcf.IDistasioWcfService">
             
              <identity>
                <dns value="localhost" />
              </identity>
            </endpoint>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="distasio_wcf.DistasioWcfServiceBehavior">
              <serviceMetadata httpGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>
    But when iam viewing in browser i am getting the error that end points are not found.

    but i have given the end points.
Working...