I recently rebuilt my development laptop with Windows 7 and have been developing on it. I have an existing Silverlight application that I have been deploying to a Windows Server 2003 machine and encountered some odd behavior after making modifications to in on the Windows 7 box and deploying it to the server. The application ran fine on the development box, but after deploying to Windows 2003, any time the application made a call to a WCF service, an exception was raised declaring that an unrecognized element had been encountered. After looking through several of the XML files in the solution, I happened upon the problem.
When looking at the ServiceReferences.ClientConfig file, I found the bindings defined there looked like this:
<binding name="BasicHttpBinding_Processing" maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
<security>
<transport>
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
</security>
</binding>
The security element and everything within it was added when I modified one of the service references in my Silverlight project. Removing all occurrences of these tags solves the problem. These tags are not added under the same circumstances when developing on Vista or XP.
I’m still not sure why these tags were added. I’m running .Net 3.5 SP1 on both my development machine and the server.