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. Error in windows service

Error in windows service

Scheduled Pinned Locked Moved C#
helptutorial
2 Posts 2 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.
  • M Offline
    M Offline
    mrcsn
    wrote on last edited by
    #1

    hi , i installed windows service in using installutil ,installing is succesfull. But the service is giving error while starting ... it is giving internal windows error or internal service error can any one tell me how to rectify error .. Thanks suman

    C 1 Reply Last reply
    0
    • M mrcsn

      hi , i installed windows service in using installutil ,installing is succesfull. But the service is giving error while starting ... it is giving internal windows error or internal service error can any one tell me how to rectify error .. Thanks suman

      C Offline
      C Offline
      CKnig
      wrote on last edited by
      #2

      Build stable code and log exceptions to the eventlog (yes you've got one for free with your windowsservice ;) ) Debuging a windows service is .... not nice so you better test your code before integrating it into a windows service. Most errors are written to the system event log of your OS anyway so maybe have a look at those and try to find more information there. A common problem is that a windows service runs normaly on special accounts that don't have all those fancy permisions you are used to while coding as admin ;) - for example file access might be forbidden - you can test this by running the service in an administrator account (of course only for test reasons :-\ )

      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