If your web service (or one you're consuming) is playing up (405 Gateway timeouts, other odd behaviour) when being debugged, maybe it's the VsDebuggerCausalityData header - it's a huge string seemingly mostly filled with AAAA!
You can disable this from being sent by adding the following in your App.Config file:
<add name="Remote.Disable" value="1">
This will disable the debugger from getting involved with the badly configured server (the VS header is within the HTTP specs upper limit on size).
This has been annoying me for at least the past day trying to talk to a partner of works web service!Permalink