title: WCF: The specified registry key does not exist in base.Channel call
body: <p>I am getting an error: "The specified registry key does not exist" when the following WCF code is being executed:</p>
  
  <pre><code>return base.Channel.GetRateSheet(request);
  </code></pre>
  
  <p>This is the rest of the method in which this is used:</p>
  
  <pre><code>public GetRateSheetResponse GetRateSheet(GetRateSheetRequest request)
  {
      return base.Channel.GetRateSheet(request);
  } 
  </code></pre>
  
  <p>The config for this endpoint is:</p>
  
  <pre><code>&lt;endpoint address="http://*********/*******/Service.svc"
            binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IBusinessService"
            name="Endpoint_RateSheetService"
            contract="*********.RateSheetService" /&gt;
  </code></pre>
  
  <p>This code used to work for many weeks, and this morning is started throwing this error.</p>
  
  <p>There is no inner exception and the only stack trace I get is: </p>
  
  <pre><code>at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
  </code></pre>
  
  <p>I did all the common tire-kicking: restarted VS, rebooted machine, got latest version of the source code.</p>
  
  <p>Running XP 32 bit.</p>
  
  <p>[EDIT:] When I go to the bin folder of the solution and run the executable direcly, it works - no error. The error only occurs when running from Visual Studio</p>