The Error Message

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.

The Solution

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 frequently accessed (mostly read) 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

” and “ ” permission to “ ” and “ ” Windows groups on .NET framework’s 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.

Get Started with .NET Programming Fast and Easy!

Check our online course titled “.NET Programming for Beginners: Windows Forms (C#)” (special limited-time discount included in link).

Learn how to implement Windows Forms projects in .NET using Visual Studio and C#, how to implement multithreading, how to create deployment packages and installers for your .NET Windows Forms apps using ClickOnce in Visual Studio, and more!

Many live demonstrations and downloadable resources included!

Enroll Now with Discount!

Featured Online Courses:

Check our other related .NET articles:

Subscribe to our newsletter and stay up to date! Check out our latest software releases! Check our eBooks!

Rate this article: (4 votes, average: 5.00 out of 5)

Loading...

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

© SQLNetHub