找不到端点。 WCF C#

时间:2018-06-22 07:24:18

标签: c# web-services wcf web

我已经创建了WCF Web服务,并且该服务中编写了一些方法。当我右键单击该服务并“在浏览器中查看”并调用服务方法http://localhost:8265/CRMService.svc/GetPricelist时,出现此错误。以下是我的web.config文件。需要帮助

 <system.serviceModel>
    <behaviors>



      <serviceBehaviors>
        <behavior name="">
          <!-- To avoid disclosing metadata information, set the values 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="true"/>
          <!--<serviceAuthorization serviceAuthorizationManagerType="WCFZKTecoService.Authorization.RestAuthorizationManager, WCFZKTecoService"/>-->
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="restfulbehavior">
          <webHttp/>
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <services>
      <service name="Procons.Sodamco.SalesForceWCF.CRMService" behaviorConfiguration="">

        <endpoint address="" binding="webHttpBinding" behaviorConfiguration="restfulbehavior" name="RESTEndpoint" contract="Procons.Sodamco.SalesForceWCF.ICRMService"/>
      </service>
    </services>
    <protocolMapping>

      <add binding="webHttpBinding" scheme="https" />
    </protocolMapping>

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" minFreeMemoryPercentageToActivateService="1" multipleSiteBindingsEnabled="true"/>
  </system.serviceModel>

0 个答案:

没有答案