title: Self hosted WCF Service not working when i type url in browser?
body: <p>I'm new to WCF. I have made a simple self hosted service and added <code>app.config</code> but when I type address in the browser it is not showing me the service page that we get when we create our service <code>http://localhost:8067/WCFService</code> it is not displaying the service as it shows when we run service. </p>
  
  <p>But when I try to add base service in <code>public static void main</code> instead of <code>app.config</code> it works fine m not getting yy?? Can anyone please help me?</p>
  
  <p>Following is the <code>app.config</code> file manually added:</p>
  
  <pre><code>&lt;configuration&gt;     
     &lt;system.serviceModel&gt;     
        &lt;services&gt;     
           &lt;service name="SelfHostedWCFService.WCFService"&gt;     
              &lt;endpoint
                  address="http://localhost:8067/WCFService"
                  binding="wsHttpBinding"
                  contract="SelfHostedWCFService.IWCFService"&gt;     
              &lt;/endpoint&gt;     
           &lt;/service&gt;     
        &lt;/services&gt;     
     &lt;/system.serviceModel&gt;     
  &lt;/configuration&gt; 
  </code></pre>
  
  <p>Following is the <code>Program.cs</code>:</p>
  
  <pre><code>static void Main(string[] args)     
  {     
      ServiceHost host = new ServiceHost(typeof(SelfHostedWCFService.WCFService));
      host.Open();     
      Console.WriteLine("Server is Running...............");      
      Console.ReadLine();
  }
  </code></pre>
  
  <p>Following is the interface file manually added:</p>
  
  <pre><code>namespace SelfHostedWCFService     
  {      
      [ServiceContract]     
      interface IWCFService      
      {     
          [OperationContract]     
          int Add(int a, int b);      
          [OperationContract]     
          int Sub(int a, int b);      
          [OperationContract]     
          int Mul(int a, int b);
      }     
  } 
  </code></pre>
  
  <p>Following is the <code>service.cs</code> file manually added:</p>
  
  <pre><code>namespace SelfHostedWCFService
  {     
      class WCFService:IWCFService     
      {     
           public int Add(int a, int b) { return (a + b); }      
           public int Sub(int a, int b) { return (a - b); }      
           public int Mul(int a, int b) { return (a * b); } 
      }     
  } 
  </code></pre>
  
  <p>Is something wrong with my <code>app.config</code> or some other concept??</p>