title: Problem Hosting WCF Service in VB6 debug mode - unable to open its IChannelListener
body: <p>So i have a WCF services that is hosted in a VB6 app via COM. The problem i have is when you debug the VB6 app the application is launched under the VB6.exe process not a separate process like Visual Studio. If i terminate the app by hitting stop in the debugger or there is an exception then the next time i run the app it tries to start the wcf host again an i get this error</p>
  
  <p>The ChannelDispatcher at 'http://localhost:8080/basic' with contract(s) '"IEvalService"' is unable to open its IChannelListener.</p>
  
  <p>I know this is because the ServiceHost.Abort or ServiceHost.Close is not being called in these situations. I call this when i close the app normally and it works the next time. The only way i can fix it is to restart VB. </p>
  
  <p>Is there a way i can check to see if the service host is running, abort it and then start it again?</p>