Be aware of “extendedProtectionPolicy” on Windows 7 BETA 1

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

When working with web services based on WCF you may get following or similar error after importing of references:

{System.Xml.XmlException: 'Element' is an invalid XmlNodeType. Line 8, position 26.
   at System.Xml.XmlReader.ReadEndElement()
   at System.Configuration.ConfigurationElement.ReadEmptyElement(XmlReader reader)
   at System.ServiceModel.Configuration.BasicHttpSecurityElement.ReadXml(XmlReader reader)
   at System.ServiceModel.Configuration.BasicHttpBindingElement.ReadXml(XmlReader reader)
   at System.ServiceModel.Configuration.BasicHttpBinding

The problem is caused by element

<transport>
     <extendedProtectionPolicy policyEnforcement="Never" />
</transport>

At this point of time it is sure that this happen on Windows7 BETA one and there is no an official workaround. To make it working remove this attribute after importing of references.

More about this attribute you can find here.


Posted Jun 10 2009, 11:59 AM by Damir Dobric

Comments

Damir Dobric wrote re: Be aware of “extendedProtectionPolicy” on Windows 7 BETA 1
on 08-23-2009 8:31

The WCF CF team has published the new version of netcfsvcutil.exe, which should fix this issue: download.microsoft.com/.../NetCFSvcUtil.exe

developers.de is a .Net Community Blog powered by daenet GmbH.