Unable to install WCF Windows Service

Hey guys,

How should I handle the installation of a Windows Service that needs to register HTTP/TCP bindings? I’m currently getting the following exception when I try and start the service?

System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL ht
tp://+:1001/AutoActionWCFService/. Your process does not have access rights to t
his namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details). –
-> System.Net.HttpListenerException: Access is denied

It works fine as I run the executable directly, as administrator, but not sure how I can do that from Octopus.

Hi Ben,

Thanks for getting in touch! Have you tried to change your service LogOn details (see attachment) and run it as Administrator? If not, then please try to do it and see if this fixes the problem. If it does, then the account that the service was using originally is missing some permissions.

Please let me know how you go.

Regards

Pawel

All good guys, it was to do with the service name (we were using Topshelf and the name didn’t match).

Hi Ben,

I’m glad it works now and thank you for letting us know what the solution is.

Regards

Pawel