c# - End Point Not found in WCF Restful Service -


i creating sample wcf service test 1 of client. getting result using soap, rest not working. shows "endpoint not found" error. here web.config wcf service. can tells me what's wrong config file.

 <?xml version="1.0"?>  <configuration> <appsettings> <add key="aspnet:usetaskfriendlysynchronizationcontext" value="true" /> </appsettings> <system.web> <compilation debug="true" targetframework="4.5" /> <httpruntime targetframework="4.5"/>  </system.web>  <system.servicemodel>  <behaviors>   <servicebehaviors>     <behavior name="web">       <!-- avoid disclosing metadata information, set values below false before deployment -->       <servicemetadata httpgetenabled="true" httpsgetenabled="true"/>       <!-- receive exception details in faults debugging purposes, set value below true.  set false before deployment avoid disclosing exception information -->       <servicedebug includeexceptiondetailinfaults="false"/>     </behavior>   </servicebehaviors> <endpointbehaviors>   <behavior name="restbehavior">     <webhttp/>   </behavior> </endpointbehaviors> </behaviors>   <services>   <service name ="s2hcloudservice.service1"   behaviorconfiguration="web" >      <endpoint name ="soapendpoint"     contract ="s2hcloudservice.iservice1"     binding ="basichttpbinding"     address ="soap" />      <endpoint name ="restendpoint"     contract ="s2hcloudservice.iservice1"     binding ="webhttpbinding"     address ="rest"     behaviorconfiguration ="restbehavior"/>      <endpoint contract="imetadataexchange"     binding="mexhttpbinding"     address="mex" />   </service> </services>  <protocolmapping>     <add binding="basichttpsbinding" scheme="https" />    </protocolmapping>        <servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" />   </system.servicemodel>   <system.webserver>   <modules runallmanagedmodulesforallrequests="true"/>   <!--     browse web app root directory during debugging, set value below true.     set false before deployment avoid disclosing web app folder information. -->    <directorybrowse enabled="true"/>   </system.webserver>   </configuration> 


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -