【发布时间】:2014-04-10 08:09:43
【问题描述】:
我为我的网站https://www.test.com 配置了 SSL。我有一个虚拟目录testwcf。当我使用https://www.test.com/testwcf/Common.svc 访问它时。显示消息You have created a service. 但是当我访问服务中的任何方法时,例如
https://www.test.com/testwcf/Common.svc/select?id=1 我收到错误 The resource cannot be found.。但它适用于 http 即http://www.test.com/testwcf/Common.svc/select?id=1。谁能帮我解决这个问题。我在网上搜索了很多,但对我没有任何帮助
下面是我的websconfg
<services>
<service name="testwcf.Service1">
<endpoint address=""
binding="basicHttpBinding"
bindingConfiguration="secureHttpBinding"
contract="testwcf.IService1"/>
<endpoint address="mex"
binding="mexHttpsBinding"
contract="IMetadataExchange" />
</service>
</services>
<bindings>
<basicHttpBinding>
<binding name="secureHttpBinding">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
【问题讨论】:
标签: c# wcf ssl iis-7 virtual-directory