title: The Service on local computer started and then stopped ,Some services stop automatically if there are not in use by other services or programs
body: <p>I created one sample windows service and installed my service with successfully. But while going to START the service. I am getting below error.</p>
  
  <p><strong>This sevice on local computer started and then stopped.
  some serivces stop automatically if then are not in use by other serives or programs</strong></p>
  
  <p><img src="https://i.stack.imgur.com/C3wmV.png" alt="enter image description here"></p>
  
  <p><strong>My config file Code:</strong></p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;service name="SvcClient.WCFJobsLibrary.Service1"&gt;
          &lt;endpoint address="" binding="wsHttpBinding" contract="WCFJobsLibrary.IService1"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost" /&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8732/Design_Time_Addresses/WCFJobsLibrary/Service1/" /&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
        &lt;/service&gt;
   &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior&gt;
            &lt;!-- To avoid disclosing metadata information, 
            set the value below to false and remove the metadata endpoint above before deployment --&gt;
            &lt;serviceMetadata httpGetEnabled="True"/&gt;
            &lt;!-- To receive exception details in faults for debugging purposes, 
            set the value below to true.  Set to false before deployment 
            to avoid disclosing exception information --&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="False" /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Can any one please suggest me...
  Thanks in adv.</p>