REST WCF服务中的端点错误 [英] End Point Error In REST WCF Service

查看:84
本文介绍了REST WCF服务中的端点错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,
执行我的REST服务时出现错误无端点".
以下是我的Web.config文件的配置:

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>



请告诉我这里要修改的内容,以便我可以运行我的服务.

谢谢
Das



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

Thanks
Das

推荐答案

嗨Gittu,
这是因为您的服务没有得到认可.
您必须提供端点地址,即您的服务网址..
Hi Gittu,
Its because your service is not getting recognized.
You must give endpoint address ,which is your service url..


这篇关于REST WCF服务中的端点错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆