Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>As you suspected, Remote.Disable stops the app from attaching debug info to remote requests. It's defined inside the .NET framework methods that make the SOAP request.</p> <p>The basic situation is that these switches can be defined anywhere in code, you just need to create a new System.Diagnostics.BooleanSwitch with the name given and the config file can control them.</p> <p>This particular one is defined in System.ComponentModel.CompModSwitches.DisableRemoteDebugging:</p> <pre><code>public static BooleanSwitch DisableRemoteDebugging { get { if (disableRemoteDebugging == null) { disableRemoteDebugging = new BooleanSwitch("Remote.Disable", "Disable remote debugging for web methods."); } return disableRemoteDebugging; } } </code></pre> <p>In your case it's probably being called from <em>System.Web.Services.Protocols.RemoteDebugger.IsClientCallOutEnabled()</em>, which is being called by <em>System.Web.Services.Protocols.WebClientProtocol.NotifyClientCallOut</em> which is in turn being called by the Invoke method of <em>System.Web.Services.Protocols.SoapHttpClientProtocol</em></p> <p>Unfortunately, to my knowledge, short of decompiling the framework &amp; seaching for </p> <pre><code>new BooleanSwitch </code></pre> <p>or any of the other inheritors of the <em>System.Diagnostics.Switch</em> class, there's no easy way to know what switches are defined. It seems to be a case of searching msdn/google/stack overflow for the specific case</p> <p>In this case I just used Reflector &amp; searched for the Remote.Disable string</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload