I created one trial Windows service and successfully installed my service. But while you are about to START the service. I am getting below the error.
This service on the local computer started and then stopped. some serivces automatically stop if they are not used by other programs or programs

My configuration file Code:
<system.serviceModel> <services> <service name="SvcClient.WCFJobsLibrary.Service1"> <endpoint address="" binding="wsHttpBinding" contract="WCFJobsLibrary.IService1"> <identity> <dns value="localhost" /> </identity> </endpoint> <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> <host> <baseAddresses> <add baseAddress="http://localhost:8732/Design_Time_Addresses/WCFJobsLibrary/Service1/" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="False" /> </behavior> </serviceBehaviors> </behaviors> </system.serviceModel>
Can anyone suggest me ... Thanks in adv.
source share