在IIS 7.5中托管WCFweb服务
我正试图在Windows7 64位计算机上托管一个用IIS7.5中的.NET3.5编写的WCF服务,运气不好。我还在计算机上安装了Sharepoint 2010。以下是我的设置: 包含.svc文件的文件夹的物理路径为: C:\inetpub\wwwroot\SmartSolution\Services\Services\ContainerManagementService.svc 我已经在IIS中为这两个服务文件夹创建了一个web应用程序 以下是WCF服务的配置文件:在IIS 7.5中托管WCFweb服务,wcf,iis-7,iis-7.5,Wcf,Iis 7,Iis 7.5,我正试图在Windows7 64位计算机上托管一个用IIS7.5中的.NET3.5编写的WCF服务,运气不好。我还在计算机上安装了Sharepoint 2010。以下是我的设置: 包含.svc文件的文件夹的物理路径为: C:\inetpub\wwwroot\SmartSolution\Services\Services\ContainerManagementService.svc 我已经在IIS中为这两个服务文件夹创建了一个web应用程序 以下是WCF服务的配置文件: <ser
<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>
,我得到以下错误:
如果我单击“返回站点”,出于某种原因,我会被带到我的Sharepoint管理中心。如何使IIS托管服务正常工作
谢谢 您已经在端口8000上公开了该服务,因此需要在http://localhost:8000/ContainerManagementService
在端口上没有运气。既然配置文件中没有设置端口8000,您怎么知道它正在使用端口8000?当我转到“8000”URL时,出现“Internet Explorer无法显示网页”错误。因为您在web.config中将其定义为端口8000:
谢谢您提供的信息。不幸的是,8000端口没有运气。删除主机属性后,当我尝试点击:,我会得到与上图相同的错误页面。我想知道它是否与sharepoint相关