Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. WCF service as Windows Service

WCF service as Windows Service

Scheduled Pinned Locked Moved C#
csharpwcfcomhelpquestion
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TwilightEva
    wrote on last edited by
    #1

    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.

    S J 2 Replies Last reply
    0
    • T TwilightEva

      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.

      S Offline
      S Offline
      sina rahimzadeh
      wrote on last edited by
      #2

      Its easy you can use this using directive

      using System.ServiceModel

      J P 2 Replies Last reply
      0
      • S sina rahimzadeh

        Its easy you can use this using directive

        using System.ServiceModel

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        sina rahimzadeh wrote:

        you can use this using directive

        That has absolutely nothing to do with it. The OP doesn't have a compile problem.

        1 Reply Last reply
        0
        • T TwilightEva

          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.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          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[^]

          T 1 Reply Last reply
          0
          • S sina rahimzadeh

            Its easy you can use this using directive

            using System.ServiceModel

            P Offline
            P Offline
            Pete OHanlon
            wrote on last edited by
            #5

            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

            T 1 Reply Last reply
            0
            • J jschell

              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[^]

              T Offline
              T Offline
              TwilightEva
              wrote on last edited by
              #6

              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)

              T 1 Reply Last reply
              0
              • P Pete OHanlon

                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

                T Offline
                T Offline
                TwilightEva
                wrote on last edited by
                #7

                even turkey can't help me -/

                1 Reply Last reply
                0
                • T TwilightEva

                  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)

                  T Offline
                  T Offline
                  taha bahraminezhad Jooneghani
                  wrote on last edited by
                  #8

                  first remove that port and then reserve it again, or change your port, maybe its allready reserved by another service!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups