Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,
I'm Getting Error "No End Point Present" while executing my REST Service.
Below is the Configuration of my Web.config file:

<pre lang="xml"><configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0"/>
  </system.web>
  <system.serviceModel>
    <services>
      <service name="Service">
        <endpoint address="" binding="webHttpBinding" contract="IService"/>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior>
          <!-- To avoid disclosing metadata information, set the value below to false before deployment -->
          <serviceMetadata httpGetEnabled="true"/>
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
  </system.serviceModel>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true"/>
    <!--
        To browse web app root directory during debugging, set the value below to true.
        Set to false before deployment to avoid disclosing web app folder information.
      -->
    <directoryBrowse enabled="true"/>
  </system.webServer>
</configuration>


Plz Tell Me What to Modify Here So that I'll be able to Run My Service.

Thanks
Das
Posted

1 solution

Hi Gittu,
Its because your service is not getting recognized.
You must give endpoint address ,which is your service url..
 
Share this answer
 
Comments
P_Dash 23-Sep-12 15:18pm    
Can U Plz Tell Me Where Can I find the Endpoint Address ?
cutie1 24-Sep-12 0:37am    
It is ur service url.The service reference which u add.. something with extension .svc
P_Dash 27-Sep-12 15:40pm    
See I've Edited address in web.config as this:
endpoint address="http://localhost:10492/Service.svc"

But Still Getting Error.

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



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