【问题标题】:the element 'transport' cannot contain child element 'extendedProtectionPolicy' because the parent element's content model is empty元素“transport”不能包含子元素“extendedProtectionPolicy”,因为父元素的内容模型为空
【发布时间】:2010-12-17 13:05:01
【问题描述】:

我继承了一个调用 Web 服务的 Web 应用程序。它正在VS2008 SP1中开发并部署到IIS6(2k3 Server R2)。

自从我升级到 Windows 7 Enterprise RTM 后,以下行被添加到我的 Web.config:

<extendedProtectionPolicy policyEnforcement="Never" />

问题是当我将此应用程序部署到我的网络服务器时,我收到以下错误:

元素“transport”不能包含子元素“extendedProtectionPolicy”,因为父元素的内容模型为空

我可以删除该行,它会起作用,但它很痛苦,有时我会忘记再次删除它(VS2008 添加似乎在我加载解决方案时将其添加回来!!)。

有什么可以做的吗?

这是我的“运输”部分:

<transport clientCredentialType="None" proxyCredentialType="None" realm="">
        <extendedProtectionPolicy policyEnforcement="Never" />
</transport>

谢谢 尼尔

【问题讨论】:

    标签: visual-studio-2008 windows-7 iis-6


    【解决方案1】:

    到目前为止,我发现如果您注释掉该部分...似乎会阻止 Visual Studio 再次将其添加回来。

    【讨论】:

    • 哪个部分? ?
    猜你喜欢
    • 1970-01-01
    • 2011-07-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多