Today I’ve been spending some time learning how to implement a simple self hosted WCF (Windows Communication Foundation) service. To implement a self hosted one, you need to create a Web Service Library project to create the dll. Then the idea is you can self host the dll either through a console application or service application. I’ve been following along pluralsight’s training course on basic WCF implementations, configuring services with endpoints at 8:37, and I’ve seemed to hit a snag.
I’ve gotten to the point where I’m changing the default port from a debug port (8732 or 8731 in their example) to use port 8080 and my service will not stand up. In addition to that I’m also adding tcp service endpoints as well. When I try to debug the service, I keep getting the following error:
Please try changing the HTTP port to 8732 or running as Administrator.
System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:8080/evalservice/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). —> System.Net.HttpListenerException: Access is denied.