What's the .NET 4.5 equivalent to UserNameWSTrustBinding?
问题 I am converting a active profile STS to the new .NET 4.5 System.IdentityModel framework. My code using the UserNameWSTrustBinding which doesn't seem to exist in the new framework. Any suggestions. 回答1: Although this is an old question, I couldn't find any non-third-party answer on the internet, so here it is: To replace UserNameWSTrustBinding in .NET 4.5, use the following: var binding = new WS2007HttpBinding(SecurityMode.{what it was before}); binding.Security.Message.ClientCredentialType =