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. Web Development
  3. ASP.NET
  4. Can't start window service from web application

Can't start window service from web application

Scheduled Pinned Locked Moved ASP.NET
helpsysadminwindows-admin
6 Posts 3 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.
  • S Offline
    S Offline
    sabby2006
    wrote on last edited by
    #1

    hi all I have a window service and i am trying to run it from Web application. when i start the Window Service while running the web Application from the development server. It Works fine no issue comes up, But When i host the web application with iis server the following error comes up. Cannot open "windowservicename" service on computer '.'.

    Regards

    J P 2 Replies Last reply
    0
    • S sabby2006

      hi all I have a window service and i am trying to run it from Web application. when i start the Window Service while running the web Application from the development server. It Works fine no issue comes up, But When i host the web application with iis server the following error comes up. Cannot open "windowservicename" service on computer '.'.

      Regards

      J Offline
      J Offline
      John ph
      wrote on last edited by
      #2

      Is the same windows service installed in the machine where you host your web application?

      Regards
       - J O N -


      S 1 Reply Last reply
      0
      • J John ph

        Is the same windows service installed in the machine where you host your web application?

        Regards
         - J O N -


        S Offline
        S Offline
        sabby2006
        wrote on last edited by
        #3

        yes its installed,both the things are on the same machine

        Regards

        1 Reply Last reply
        0
        • S sabby2006

          hi all I have a window service and i am trying to run it from Web application. when i start the Window Service while running the web Application from the development server. It Works fine no issue comes up, But When i host the web application with iis server the following error comes up. Cannot open "windowservicename" service on computer '.'.

          Regards

          P Offline
          P Offline
          Paddy Boyd
          wrote on last edited by
          #4

          Sounds like the user your web application is running under is not privileged enough to work with services. Were you running as a local administrator on your development machine by any chance?

          S 1 Reply Last reply
          0
          • P Paddy Boyd

            Sounds like the user your web application is running under is not privileged enough to work with services. Were you running as a local administrator on your development machine by any chance?

            S Offline
            S Offline
            sabby2006
            wrote on last edited by
            #5

            the user is not administrator but belongs to the administrator group and the user is a domain user

            Regards

            P 1 Reply Last reply
            0
            • S sabby2006

              the user is not administrator but belongs to the administrator group and the user is a domain user

              Regards

              P Offline
              P Offline
              Paddy Boyd
              wrote on last edited by
              #6

              Are you sure that you are correctly impersonating this user?

              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