the element 'transport' cannot contain child element 'extendedProtectionPolicy' because the parent e

Posted by neildeadman on Stack Overflow See other posts from Stack Overflow or by neildeadman
Published on 2009-11-17T17:09:49Z Indexed on 2010/04/21 7:43 UTC
Read the original article Hit count: 884

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

© Stack Overflow or respective owner

Related posts about iis6

Related posts about visual-studio-2008