【发布时间】:2014-11-20 21:58:06
【问题描述】:
当我在本地 IIS 中将 WCF 服务设置为 SSL 要求 时,我在调试 WCF 服务时遇到问题。我能够在 http/https 下为我的服务正确点击 URL,但我无法调试和单步执行代码。我收到了一个带有以下文本的弹出框:
无法在 Web 服务器上开始调试。网络服务器配置不正确。
当我使服务不需要SSL时,我可以按预期逐步执行我的代码。我是处理 IIS 的新手,并且已经阅读了许多具有相同结果的教程。任何帮助都会很棒
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="sslBehaviorConfiguration">
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpsGetEnabled="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="sslBindingConfiguration">
<security mode="Transport" />
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="SslWCFProject.Service1" behaviorConfiguration="sslBehaviorConfiguration">
<endpoint binding="wsHttpBinding" bindingConfiguration="sslBindingConfiguration" contract="SslWCFProject.IService1" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<!--<protocolMapping>
<add binding="wsHttpBinding" scheme="https"/>
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>-->
【问题讨论】:
标签: c# web-services wcf iis visual-studio-2013