I have a service and it is hosted in a Windows application. Within the application, the service is started as below
public void Initialise()
{
BasicHttpBinding binding = new BasicHttpBinding();
ServiceHost host = new ServiceHost(typeof(SampleType));
host.AddServiceEndpoint(typeof(ISampleService), binding, "http://localhost:6732/Sample/Service/");
host.Open();
}
Now, if I run multiple instances of the application, I am getting the error
HTTP could not register URL http://localhost:6732/Sample/Service/. Another application has already registered this URL with HTTP.SYS.
Is there any way multiple instances can listen to the same URL?