WCF error with net.tcp "The service endpoint failed to listen on the URI because access was denied
问题 I'm getting the following error when hosting WCF Net.Tcp service on windows 8.1 machine where I'm in the administrators group: The service endpoint failed to listen on the URI 'net.tcp://localhost:9001/dataservice' because access was denied. Verify that the current user is granted access in the appropriate allowAccounts section of SMSvcHost.exe.config. I even added the user to the config as suggested: <?xml version="1.0" encoding="utf-8"?> <!-- The configuration file for SMSvcHost.exe -->