This article, discusses the root cause for the error message “The Net.Tcp Port Sharing Service service on Local Computer started and then stopped” and suggests a solution to the issue.
The Root Cause for 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.
Suggested 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
- 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 with C# (Online Course)”
(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!
Featured Online Courses:
- Data Management for Beginners – Main Principles
- Introduction to Azure SQL Database for Beginners
- SQL Server 2019: What’s New – New and Enhanced Features
- SQL Server Fundamentals – SQL Database for Beginners
- Essential SQL Server Administration Tips
- Boost SQL Server Database Performance with In-Memory OLTP
- Essential SQL Server Development Tips for SQL Developers
- Working with Python on Windows and SQL Server Databases
- Introduction to Computer Programming for Beginners
- .NET Programming for Beginners – Windows Forms with C#
- Introduction to SQL Server Machine Learning Services
- Entity Framework: Getting Started – Complete Beginners Guide
- How to Import and Export Data in SQL Server Databases
- Learn How to Install and Start Using SQL Server in 30 Mins
- A Guide on How to Start and Monetize a Successful Blog
Check our other related .NET articles:
- .NET Programming for Beginners – Windows Forms (C#)
- Using ClickOnce for Deploying your .NET Windows Forms Apps
- Using the C# SqlParameter Object for Writing More Secure Code
- Cannot declare instance members in a static class
- Cannot implicitly convert type ‘string’ to ‘System.Windows.Forms.DataGridViewTextBoxColumn
- The type or namespace name ‘Office’ does not exist in the namespace ‘Microsoft’ – How to Resolve
- The timeout period elapsed prior to obtaining a connection from the pool
- …more
Subscribe to our newsletter and stay up to date!
Check out our latest software releases!
Check our eBooks!
Rate this article:
Reference: SQLNetHub.com (https://www.sqlnethub.com)
© SQLNetHub
Artemakis Artemiou, a distinguished Senior Database and Software Architect, brings over 20 years of expertise to the IT industry. A Certified Database, Cloud, and AI professional, he earned the Microsoft Data Platform MVP title for nine consecutive years (2009-2018). As the founder of SQLNetHub and GnoelixiAI Hub, Artemakis is dedicated to sharing his knowledge and democratizing education on various fields such as: Databases, Cloud, AI, and Software Development. His commitment to simplicity and knowledge sharing defines his impactful presence in the tech community.