【发布时间】:2015-05-14 11:45:13
【问题描述】:
我已将我的服务创建为 WCF 服务应用程序。然后我将该服务发布到名为“TestService”的文件夹中。我正在尝试将其作为站点添加到 IIS 管理器。一切似乎都很好,直到我去浏览我总是受到欢迎的服务:
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
我正在http://localhost:8734 浏览此网站,该网站托管在 IIS 中的 8734 端口。web.config 也包含以下内容:
<service behaviorConfiguration="TestServiceBehavior" name="TestApp.Service.TestService">
<endpoint address="/Authentication" binding="wsHttpBinding" bindingConfiguration="TestServiceBinding"
contract="TestApp.Service.IAuthenticationService" />
// ... other endpoints
<host>
<baseAddresses>
<add baseAddress="http://localhost:8734/Design_Time_Addresses/TestApp.Service/Service1/" />
</baseAddresses>
</host>
任何帮助将不胜感激。
【问题讨论】: