Our .Net 4 component accesses a third-party web service via a WCF client proxy. The WSDL for the third-party web service contains the Protect Tokens security policy:
<sp:ProtectTokens />
Accordingly, the custom binding configuration generated by Visual Studio 2013 contains:
protectTokens="true"
We've been using this for some weeks in our on-premises environment without any issues. However, on updating our Azure environment with this version of the app, we find it throws an exception:
Unrecognized attribute 'protectTokens'.
Note that attribute names are case-sensitive
MSDN seems conflicted on what .NET version supports protectTokens. The linked page is headed .NET 4.6 and 4.5, but its footer states "Available since 3.0". Regardless, the app is built for 4.0 and as I said, gives no error in the on-premises environment.
What is causing the error in Azure? This is OS Family 2 (2008R2).