When I open Visual Studio 2022 as Admin, I can able to easily run our WCF Project which is having Net Tcp Binding, but when opened VS 2022, as Non Admin and Run this Project, I am getting the below exception.
"'The service endpoint failed to listen on the URI 'net.tcp://localhost:50000/LoginService.svc' because access was denied. Verify that the current user is granted access in the appropriate allowAccounts section of SMSvcHost.exe.config.'"
I tried both the answers given by ChatGpt, i.;e 1. Modified the SMSvcHost.exe.config and added specific user. 2. Reserve the URL for the service.
Both are not working.
Any help would be highly appreciated. Thanks.