Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#错误wcf服务_C# - Fatal编程技术网

C#错误wcf服务

C#错误wcf服务,c#,C#,我正在尝试使用Internet信息服务部署WCF。我在visual studio 2015工作。但我有一个错误: 配置绑定扩展“system.serviceModel/bindings/true” 找不到。验证此绑定扩展是否已正确安装 已在system.serviceModel/extensions/bindingExtensions中注册,并且 它拼写正确 My Web.config如下所示: 谢谢你的帮助!! 我不太明白你说的话,可能是重复的。你能说得更清楚一点吗?非常感谢。您提出的问题已经

我正在尝试使用Internet信息服务部署WCF。我在visual studio 2015工作。但我有一个错误:

配置绑定扩展“system.serviceModel/bindings/true” 找不到。验证此绑定扩展是否已正确安装 已在system.serviceModel/extensions/bindingExtensions中注册,并且 它拼写正确

My Web.config如下所示:
谢谢你的帮助!!

我不太明白你说的话,可能是重复的。你能说得更清楚一点吗?非常感谢。您提出的问题已经被提出并得到了回答。谢谢,我已经看到了这个问题,但我已经在使用“wsHttpBinding”。。
My Web.config is the following:

<?xml version="1.0"?>
<configuration>

  <appSettings>
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  </appSettings>


  <system.web>
    <compilation debug="false" targetFramework="4.5.2" />
    <httpRuntime targetFramework="4.5.2"/>
  </system.web>
  <system.serviceModel>
    <services>
      <service name="ClientWebS.UserService"
               behaviorConfiguration="mex">
        <endpoint address="UserService" binding="wsHttpBinding"
           contract="ClientWebS.IUserService"></endpoint>
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8080/"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="mex">
          <serviceMetadata httpGetBinding="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </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>

Thanks for help!!