I have a WCF(REST) Service in the view mark up i added factory attribute like this:
But when iam viewing in browser i am getting the error that end points are not found.
but i have given the end points.
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 i have given the end points.