I got the below error when trying to start a wcf service
. The full error message is:
The Service on local computer started and then stopped,Some services stop automatically if there are not in use by other services or programs.
I faced this issue in a WCF application. I have installed the WCF as an windows service.
In the endpoint I put that as binding=”netTcpBinding”. But in the base address I was defining as below:
I changed the base address to net.tcp and it worked for me.
So my new baseAddresses is like below:
And my end point is like below:
<endpoint name=”NetTcpEndPoint” address=”” binding=”netTcpBinding” contract=”MyTestWCF.IService1″/>
Also check in <behaviors> section. Inside <serviceBehaviors> the below line should be false.
Now its working for me.
Also you can check out my previous posts on:
You May Also like the Following SharePoint Online Tutorials:
Download FREE SharePoint 2019 Installation PDF Guide
This FREE PDF contains, Steps by step guide to install SharePoint 2019 Preview, prerequisites, hardware and software new features. First impression to SharePoint Server 2019 new modern site, modern lists and modern document libraries.