WCF service as Windows Service
-
Good afternoon to all. Here's my problem: I've created a WCF service and now I'm trying to install it with Installer project on target machine as administrator.
host = new ServiceHost(serviceType, serviceUri);
host.Open();And here's exception:
HTTP could not register URL http://+:8282/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)
When I start serviceCore as console application - it works fine. What I'd tried: - netsh; - manifest with highestAvailable; - turn off UAC; ServiceInstaller is NetworkService, target machine OS is R2, domain user has adm rights.
-
Good afternoon to all. Here's my problem: I've created a WCF service and now I'm trying to install it with Installer project on target machine as administrator.
host = new ServiceHost(serviceType, serviceUri);
host.Open();And here's exception:
HTTP could not register URL http://+:8282/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)
When I start serviceCore as console application - it works fine. What I'd tried: - netsh; - manifest with highestAvailable; - turn off UAC; ServiceInstaller is NetworkService, target machine OS is R2, domain user has adm rights.
Its easy you can use this using directive
using System.ServiceModel
-
Its easy you can use this using directive
using System.ServiceModel
-
Good afternoon to all. Here's my problem: I've created a WCF service and now I'm trying to install it with Installer project on target machine as administrator.
host = new ServiceHost(serviceType, serviceUri);
host.Open();And here's exception:
HTTP could not register URL http://+:8282/. Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/?LinkId=70353 for details)
When I start serviceCore as console application - it works fine. What I'd tried: - netsh; - manifest with highestAvailable; - turn off UAC; ServiceInstaller is NetworkService, target machine OS is R2, domain user has adm rights.
You have to tell the computer that you are going to be using that http url. Searching for http and that error message gives many solutions like the following. http://blogs.msdn.com/b/paulwh/archive/2007/05/04/addressaccessdeniedexception-http-could-not-register-url-http-8080.aspx[^] However myself I use httpconfig from the following http://www.stevestechspot.com/default.aspx[^]
-
Its easy you can use this using directive
using System.ServiceModel
He can sacrifice a chicken as well. It's as relevant as your answer.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
-
You have to tell the computer that you are going to be using that http url. Searching for http and that error message gives many solutions like the following. http://blogs.msdn.com/b/paulwh/archive/2007/05/04/addressaccessdeniedexception-http-could-not-register-url-http-8080.aspx[^] However myself I use httpconfig from the following http://www.stevestechspot.com/default.aspx[^]
as I've said, I'd already used "netsh" I'd added localhost, ip, + with my domain user or Everyone. But it still doesn't work)
-
He can sacrifice a chicken as well. It's as relevant as your answer.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington
"Mind bleach! Send me mind bleach!" - Nagy Vilmos
CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier
even turkey can't help me -/
-
as I've said, I'd already used "netsh" I'd added localhost, ip, + with my domain user or Everyone. But it still doesn't work)
first remove that port and then reserve it again, or change your port, maybe its allready reserved by another service!