title: Webservice consuming works only when debugging under VS IDE
body: <p>My WinForms VB.NET Application consumes a webservice to perform some queries. When running in debug mode under Visual Studio IDE, it works smoothly, but once deployed in client workstations (or even in my own workstation), it crashes with this message:</p>
  
  <blockquote>
    <p><strong>System.InvalidOperationException:</strong> Could not find default endpoint element that references contract 'MyServiceReference.IMyService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element.</p>
  </blockquote>
  
  <p>I guess something that is present when debugging is missing in deployment, but I can't figure out what. </p>