The Net.Tcp Port Sharing Service service on Local Computer started and then stopped

The Net.Tcp Port Sharing Service service on Local Computer started and then stopped

The Net.Tcp Port Sharing Service service on Local Computer started and then stopped

Under certain circumstances, you might be experiencing problems with the “Net.Tcp Port Sharing” Service on Windows Server, thus giving the error message: The Net.Tcp Port Sharing Service service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

So, even though you tried to restart the server, and tried several times to start the “Net.Tcp Port Sharing” service, you still get the above error message.

It is obvious, that there is something wrong with .NET Framework and this is a direction you should take into consideration for the troubleshooting process.

Here’s a quick tip you can try, which will eventually help you overcome the problem.

Two .NET configuration files that are being used all the time by .NET services, are machine.config and web.config

Because the above two files are accessed (mostly read) frequently by a variety of .NET services, they need to have the necessary permissions. Therefore, if you are experiencing an issue with starting the “Net.Tcp Port Sharing” on your Windows Server, you can try the following:

  • Check and if not already in place, grand “Read & execute” and “Read” permission to “Users” and “IIS_IUSRS” Windows groups on .NET framework’s machine.config file
  • Check and if not already in place, grand “Read & execute” and “Read” permission to “Users” and “IIS_IUSRS” Windows groups on .NET framework’s web.config file

Regarding the version of .NET framework that is used and the location of machine.config and web.config that you need to check, you can find it out by checking out the “Net.Tcp Port Sharing Service” service’s properties after launching “services.msc” from Start-Run.

For example, if you are running Windows Server 2008 R2, the folder where web.config and machine.config are placed, is “C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config

Even though this short article talks about the “Net.Tcp Port Sharing” Windows Server service, the two actions suggested above, might also help in similar situations, like for example when you get the error message “scnotification.exe has stopped working” and other similar error messages that have to do with applications or services that use the .NET framework.

Check our other related .NET troubleshooting articles.

Check out our latest software releases!

Subscribe to our newsletter and stay up to date!

Check out Artemakis’s eBooks!

 

Rate this article: 1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5.00 out of 5)

Loading...

Reference: SQLNetHub.com (https://www.sqlnethub.com)

© 2018 SQLNetHub

Artemakis Artemiou
Artemakis Artemiou is a Senior SQL Server and Software Architect, Author, and a 9 Times Microsoft Data Platform MVP (2009-2018). He has over 15 years of experience in the IT industry in various roles. Artemakis is the founder of SQLNetHub and TechHowTos.com. Artemakis is the creator of the well-known software tools Snippets Generator and DBA Security Advisor. Also, he is the author of many eBooks on SQL Server. Artemakis currently serves as the President of the Cyprus .NET User Group (CDNUG) and the International .NET Association Country Leader for Cyprus (INETA). Artemakis's official website can be found at aartemiou.com.

One thought on “The Net.Tcp Port Sharing Service service on Local Computer started and then stopped

  1. Pingback: [Blog] The Net.Tcp Port Sharing Service service on Local Computer started and then stopped - How to Code .NET