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. My WinService refuses to startup ....

My WinService refuses to startup ....

Scheduled Pinned Locked Moved C#
helpcomperformancetutorialquestion
3 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
    MaWeRic
    wrote on last edited by
    #1

    ... I receive this error : "bla bla bla on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service." It worked fine before I used some calls to JMail COM-object ... I Removed the email-functionallity and then it started again. Do I have a credentials-problem or what? Please help! //Maw

    D 1 Reply Last reply
    0
    • M MaWeRic

      ... I receive this error : "bla bla bla on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service." It worked fine before I used some calls to JMail COM-object ... I Removed the email-functionallity and then it started again. Do I have a credentials-problem or what? Please help! //Maw

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      It seems that your email code throws an exception, effectively stopping your service just like an application crash. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      M 1 Reply Last reply
      0
      • D Dave Kreskowiak

        It seems that your email code throws an exception, effectively stopping your service just like an application crash. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        M Offline
        M Offline
        MaWeRic
        wrote on last edited by
        #3

        Hi Dave ... Got any suggestions? The JMail works when I use it in debug. I use a 3 projects to debug this service. 1. Coreclass (contains Functions for Start and Stop 2. Service (Only when doing a release. Use Core as reference. OnStart Calls Core.Start etv) 3. TestApp (My testappliacation. Use Core as reference. Has 2 buttons wich calls Core.Start and Core.Stop) If I use TestApp then I have no problems. When I compile service I get all this problem. Can I debug my service in any way? I write errors to Event-log but nothing gets there. Thnaks // Maw

        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