Asp.net 将WCF服务配置为在IIS 6上运行

Asp.net 将WCF服务配置为在IIS 6上运行,asp.net,wcf,iis-6,wcf-4,Asp.net,Wcf,Iis 6,Wcf 4,部署到生产环境后,我只收到404-找不到文件 该服务需要配置为虚拟目录(/v1)。 它有自己的应用程序池 我根据启用了ASP.Net 4.0 我根据添加了通配符并删除了windows集成安全性 它仍然不起作用 以下是my web.config的ServiceModel部分: <system.serviceModel> <extensions> <behaviorExtensions> <add na

部署到生产环境后,我只收到404-找不到文件

该服务需要配置为虚拟目录(/v1)。 它有自己的应用程序池

我根据启用了ASP.Net 4.0

我根据添加了通配符并删除了windows集成安全性

它仍然不起作用

以下是my web.config的ServiceModel部分:

    <system.serviceModel>
    <extensions>
        <behaviorExtensions>
            <add name="restHttpBehavior" type="--hidden for security purposes--, Version=0.8.0.0, Culture=neutral, PublicKeyToken=null"/>
        </behaviorExtensions>
    </extensions>
    <services>
        <service name="--hidden for security purposes--" behaviorConfiguration="MetadataBehavior">
            <host>
                <baseAddresses>
                    <add baseAddress="http://localhost/v1/api.svc"/>
                </baseAddresses>
            </host>

            <endpoint behaviorConfiguration="WebBehavior" binding="webHttpBinding" bindingConfiguration="restNoSSL" contract="--hidden for security purposes--"/>
            <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        </service>
    </services>
    <behaviors>
        <endpointBehaviors>
            <behavior name="WebBehavior">
                <restHttpBehavior/>
            </behavior>
        </endpointBehaviors>
        <serviceBehaviors>
            <behavior name="MetadataBehavior">
                <serviceMetadata httpGetEnabled="true"/>
                <serviceDebug includeExceptionDetailInFaults="false"/>
            </behavior>
        </serviceBehaviors>
    </behaviors>
    <bindings>
        <webHttpBinding>

            <binding name="restNoSSL">
            </binding>
        </webHttpBinding>
    </bindings>
</system.serviceModel>


请帮忙

结果表明,ISAPI筛选器实际上阻止了该服务。因此,我删除了通配符,重新添加了windows集成安全性,网站现在可以正常运行。

看到了同样的问题,但对我来说,这是因为ISAPI通配符使用了不正确的ISAPI文件

这些版本存在

64位.net 2.0 aspnet_isapi.dll

32位.net 2.0 aspnet_isapi.dll

64位.net 4.0 aspnet_isapi.dll

32位.net 4.0 aspnet_isapi.dll

可以应用32位.net 4.0 aspnet_isapi.dll,并且仍然允许我的站点工作