当我决定设置它的安全性时,我很高兴在我的服务和客户端上工作,一切正常,我很惊讶 .config 文件上没有绑定信息。无协议,无编码...
我如何找出它正在使用的绑定?它绝对是 http,因为我能够在 IIS 上托管(我猜没有 WAS ..)
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>