【发布时间】:2011-07-25 08:38:59
【问题描述】:
我正在尝试在 Windows 7 64 位机器上的 IIS 7.5 中托管用 .NET 3.5 编写的 WCF 服务,但运气不佳。我还在机器上安装了 Sharepoint 2010。这是我的设置:
.svc 文件所在文件夹的物理路径为: C:\inetpub\wwwroot\SmartSolution\Services\Services\ContainerManagementService.svc
我在 IIS 中为这两个 Services 文件夹创建了一个 Web 应用程序。
这是 WCF 服务的配置文件:
<service behaviorConfiguration="MyNamespace.ContainerManagementServiceBehavior"
name="MyNamespace.ContainerManagementService">
<endpoint address="" binding="basicHttpBinding"
name="ContainerManagementbasicHttpEndpoint" contract="MyNamespace.IContainer"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8000/ContainerManagementService" />
</baseAddresses>
</host>
</service>
<behaviors>
<behavior name="MyNamespace.ContainerManagementServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</behaviors>
当我尝试浏览到:http://localhost/SmartSolution/Services/Services/ContainerManagementService.svc 时,我收到以下错误:
如果我单击“返回站点”,由于某种原因,我会被带到我的 Sharepoint Central 管理员。如何让 IIS 服务托管工作?
谢谢!
【问题讨论】: