IIS看不到WCF服务
我将AjaxDataService.svc放在我的根目录中。 因为根文件夹的内容是自动部署的,所以我认为没有理由缺少任何内容。 我唯一想到的是有一个坏的.configIIS看不到WCF服务,wcf,iis,config,endpoint,Wcf,Iis,Config,Endpoint,我将AjaxDataService.svc放在我的根目录中。 因为根文件夹的内容是自动部署的,所以我认为没有理由缺少任何内容。 我唯一想到的是有一个坏的.config <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name=""> <serviceMetadata httpGetEnabled="true" /> <
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="JsonBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<services>
<service name="WashMyCarHomepage.AjaxEntityService">
<endpoint address="" binding="webHttpBinding" contract="WashMyCarHomepage.IAjaxEntityService" behaviorConfiguration="JsonBehavior" />
<host>
<baseAddresses>
<add baseAddress="http://sub.project.com" />
</baseAddresses>
</host>
</service>
</services>
<serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true" />
它在本地主机上运行平稳。应用程序的其余部分也按预期运行
编辑:
有人能列出可能的原因吗?浏览服务时出现的错误是什么?404-找不到文件或目录。您使用的IIS版本是什么?尝试启用正在IIS 8、Windows server 2012上运行的Web服务扩展节点。由于IIS8中没有“Web服务扩展节点”功能,所以我放弃了本教程。所有现有项目都设置为“允许”,我也启用了“未指定的CGI模块”和“未指定的ISAPI模块”,但没有帮助。因此,我再次禁用它。