diff --git a/src/System.Private.ServiceModel/tools/SelfHostedWcfService/Program.cs b/src/System.Private.ServiceModel/tools/SelfHostedWcfService/Program.cs index a4d9c7bb081..d2429c9e5e8 100644 --- a/src/System.Private.ServiceModel/tools/SelfHostedWcfService/Program.cs +++ b/src/System.Private.ServiceModel/tools/SelfHostedWcfService/Program.cs @@ -41,7 +41,7 @@ private static void Main() TestDefinitionHelper.StartHosts(); //Start the crlUrl service last as the client use it to ensure all services have been started - Uri testHostUrl = new Uri(string.Format("http://localhost/TestHost.svc", s_httpPort)); + Uri testHostUrl = new Uri(string.Format("http://localhost:{0}/TestHost.svc", s_httpPort)); WebServiceHost host = new WebServiceHost(typeof(TestHost), testHostUrl); WebHttpBinding binding = new WebHttpBinding(); host.AddServiceEndpoint(typeof(ITestHost), binding, "");