我在生产服务中遇到此错误,但在登台和开发服务器中工作正常。
错误:
配置绑定扩展 找不到'system.serviceModel / bindings / bsicMttpBinding'。验证此绑定扩展名已在system.serviceModel / extensions / bindingExtensions中正确注册,并且拼写正确
.Net版本:4.6.1
Web.config
<system.web>
<customErrors mode="Off" />
<compilation debug="true" targetFramework="4.6.1" />
<authentication mode="Windows" />
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
</system.web>
<client>
<endpoint address="http://xx/SISL.svc" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_ISISL" contract="SISLReference.ISISL"
name="BasicHttpBinding_ISISL" />
</client>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ISISL" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"
textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"
messageEncoding="Text">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647"
maxArrayLength="16384000" maxBytesPerRead="4096000" maxNameTableCharCount="16384000" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>