NetTcpPortSharing service: failed to start the service

Few Days back when I was running and build, it started throwing an exception as:

The TransportManager failed to listen on the supplied URI using the NetTcpPortSharing service: failed to start the service because it is disabled.

 An administrator can enable it by running ‘sc.exe config NetTcpPortSharing start= demand’..

 —> System.InvalidOperationException: Cannot start service NetTcpPortSharing on computer ‘.’. —> System.ComponentModel.Win32Exception: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Solution

To enabled, run the following command in console windows as mention in the error log

sc.exe config NetTcpPortSharing start= demand

 Image

To disable it, run the following command in a console window.

sc.exe config NetTcpPortSharing start= disabled

 And after that run you build once again. I’m sure it would not throw any error next time.

 Thanks,

Md. Jawed

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s