Refreshing service references updates the app.config
问题 Every time I make changes to my WS and update the reference in Visual Studio, VS overwrites my app.config with additional unnecessary information. So when I start my client afterwards, I get this error: An error was discovered processing the header The changes that the code generator made was to remove this line from every binding (note I'm using customBinding/httpsTransport): <security authenticationMode="UserNameOverTransport" includeTimestamp="false"> <secureConversationBootstrap/> <