the element 'transport' cannot contain child element 'extendedProtectionPolicy' because the parent element's content model is empty

非 Y 不嫁゛ 提交于 2019-12-10 19:08:23

问题


I inherited a web application that makes calls to a web service. It is being developed in VS2008 SP1 and deployed to IIS6 (2k3 Server R2).

Since I upgraded to Windows 7 Enterprise RTM, the following line gets added to my Web.config:

<extendedProtectionPolicy policyEnforcement="Never" />

The problem is that when I deploy this application to my web server I get the following error:

The element 'transport' cannot contain child element 'extendedProtectionPolicy' because the parent element's content model is empty

I can remove the line and it will work, but its a pain and I forget sometimes to remove it again (VS2008 adds seems to add it back whenever I load the solution!!).

Is there anything that can be done?

Here is my 'transport' section:

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

Thanks Neil


回答1:


So far, I have found that if you comment out that section... it seems to prevent Visual Studio from adding it back again.



来源:https://stackoverflow.com/questions/1750332/the-element-transport-cannot-contain-child-element-extendedprotectionpolicy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!