views:

1550

answers:

2

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

+2  A: 

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

neildeadman
Which section? The <transport> or the <extendedProtectionPolicy>?
Mike Chess
the extendedProtectionPolicy
Andreas Hoffmann
A: 

There are some limitations for silverlight to use custombinding. follow the post for more details http://sivakrishnakuchi.blogspot.com/2010/04/extendedprotectionpolicy-tag-problem.html

Siva