.Net Custom Service could not start Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Accessing Config File From Web - No AppSettings.NET - JSON serialization of enum as stringC# Windows Service - Started and then Stopped AutomaticallyInstall Windows Service created in Visual StudioCan't start Eclipse - Java was started but returned exit code=13.NET service application start slowWhy won't this service startWindows service, create class with 'global scope'Winsows Service failed to startHow to log information while starting or stopping servicesWindows Service not starting: “The service is not responding to the control function.”

What is this clumpy 20-30cm high yellow-flowered plant?

Find 108 by using 3,4,6

Maximum summed subsequences with non-adjacent items

Is there hard evidence that the grant peer review system performs significantly better than random?

Illegal assignment from sObject to Id

Is grep documentation about ignoring case wrong, since it doesn't ignore case in filenames?

How were pictures turned from film to a big picture in a picture frame before digital scanning?

How would a mousetrap for use in space work?

How to react to hostile behavior from a senior developer?

How does light 'choose' between wave and particle behaviour?

AppleTVs create a chatty alternate WiFi network

Trademark violation for app?

How to compare two different files line by line in unix?

How could we fake a moon landing now?

An adverb for when you're not exaggerating

Do any jurisdictions seriously consider reclassifying social media websites as publishers?

Significance of Cersei's obsession with elephants?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

What is the difference between globalisation and imperialism?

What was the first language to use conditional keywords?

What does it mean that physics no longer uses mechanical models to describe phenomena?

SF book about people trapped in a series of worlds they imagine

How does the math work when buying airline miles?



.Net Custom Service could not start



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Accessing Config File From Web - No AppSettings.NET - JSON serialization of enum as stringC# Windows Service - Started and then Stopped AutomaticallyInstall Windows Service created in Visual StudioCan't start Eclipse - Java was started but returned exit code=13.NET service application start slowWhy won't this service startWindows service, create class with 'global scope'Winsows Service failed to startHow to log information while starting or stopping servicesWindows Service not starting: “The service is not responding to the control function.”



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I created a custom Windows Service and I am trying to start it through command prompt:



C:Windowssystem32>net START "CustomService"
The CustomService service is starting.
The CustomService service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.


I tried looking at HELPMSG 3534. It states: The service did not report an error. I do not know where to go from here. I tried googling this, but nothing really helpful. I am really do not know how to troubleshoot this.



Protected Overrides Sub OnStart(ByVal args() As String)
SetConfigVariables()
_logger.WriteMessageToLog(SimpleLog.LogType.InfoType, "Start Service")
End Sub


The SetConfigVariables() calls sql server and pulls some data and set appropriate global variables.










share|improve this question
























  • without the code most anything we say is pointless. I do know that I received similar errors when I first started writing services because I was never actually leaving the "OnStart" method in the service.

    – Stephen Wrighton
    Mar 8 at 20:59











  • i added my onstart method

    – Peter Sun
    Mar 8 at 21:04











  • Q: Did you resolve this? If so, exactly what was wrong, and how did you resolve it?

    – paulsm4
    Mar 23 at 23:21

















0















I created a custom Windows Service and I am trying to start it through command prompt:



C:Windowssystem32>net START "CustomService"
The CustomService service is starting.
The CustomService service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.


I tried looking at HELPMSG 3534. It states: The service did not report an error. I do not know where to go from here. I tried googling this, but nothing really helpful. I am really do not know how to troubleshoot this.



Protected Overrides Sub OnStart(ByVal args() As String)
SetConfigVariables()
_logger.WriteMessageToLog(SimpleLog.LogType.InfoType, "Start Service")
End Sub


The SetConfigVariables() calls sql server and pulls some data and set appropriate global variables.










share|improve this question
























  • without the code most anything we say is pointless. I do know that I received similar errors when I first started writing services because I was never actually leaving the "OnStart" method in the service.

    – Stephen Wrighton
    Mar 8 at 20:59











  • i added my onstart method

    – Peter Sun
    Mar 8 at 21:04











  • Q: Did you resolve this? If so, exactly what was wrong, and how did you resolve it?

    – paulsm4
    Mar 23 at 23:21













0












0








0








I created a custom Windows Service and I am trying to start it through command prompt:



C:Windowssystem32>net START "CustomService"
The CustomService service is starting.
The CustomService service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.


I tried looking at HELPMSG 3534. It states: The service did not report an error. I do not know where to go from here. I tried googling this, but nothing really helpful. I am really do not know how to troubleshoot this.



Protected Overrides Sub OnStart(ByVal args() As String)
SetConfigVariables()
_logger.WriteMessageToLog(SimpleLog.LogType.InfoType, "Start Service")
End Sub


The SetConfigVariables() calls sql server and pulls some data and set appropriate global variables.










share|improve this question
















I created a custom Windows Service and I am trying to start it through command prompt:



C:Windowssystem32>net START "CustomService"
The CustomService service is starting.
The CustomService service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.


I tried looking at HELPMSG 3534. It states: The service did not report an error. I do not know where to go from here. I tried googling this, but nothing really helpful. I am really do not know how to troubleshoot this.



Protected Overrides Sub OnStart(ByVal args() As String)
SetConfigVariables()
_logger.WriteMessageToLog(SimpleLog.LogType.InfoType, "Start Service")
End Sub


The SetConfigVariables() calls sql server and pulls some data and set appropriate global variables.







asp.net windows service






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 21:04







Peter Sun

















asked Mar 8 at 20:25









Peter SunPeter Sun

69921432




69921432












  • without the code most anything we say is pointless. I do know that I received similar errors when I first started writing services because I was never actually leaving the "OnStart" method in the service.

    – Stephen Wrighton
    Mar 8 at 20:59











  • i added my onstart method

    – Peter Sun
    Mar 8 at 21:04











  • Q: Did you resolve this? If so, exactly what was wrong, and how did you resolve it?

    – paulsm4
    Mar 23 at 23:21

















  • without the code most anything we say is pointless. I do know that I received similar errors when I first started writing services because I was never actually leaving the "OnStart" method in the service.

    – Stephen Wrighton
    Mar 8 at 20:59











  • i added my onstart method

    – Peter Sun
    Mar 8 at 21:04











  • Q: Did you resolve this? If so, exactly what was wrong, and how did you resolve it?

    – paulsm4
    Mar 23 at 23:21
















without the code most anything we say is pointless. I do know that I received similar errors when I first started writing services because I was never actually leaving the "OnStart" method in the service.

– Stephen Wrighton
Mar 8 at 20:59





without the code most anything we say is pointless. I do know that I received similar errors when I first started writing services because I was never actually leaving the "OnStart" method in the service.

– Stephen Wrighton
Mar 8 at 20:59













i added my onstart method

– Peter Sun
Mar 8 at 21:04





i added my onstart method

– Peter Sun
Mar 8 at 21:04













Q: Did you resolve this? If so, exactly what was wrong, and how did you resolve it?

– paulsm4
Mar 23 at 23:21





Q: Did you resolve this? If so, exactly what was wrong, and how did you resolve it?

– paulsm4
Mar 23 at 23:21












1 Answer
1






active

oldest

votes


















0














Q: Did you get this working?



SUGGESTION:



If not, make sure you've done everything in this article, particularly:




MSDN Walkthrough: Create a Windows service
app



Before you can run a Windows service, you need to install it, which
registers it with the Service Control Manager




ALSO:



Q: How are things going with this question: Accessing Config File From Web - No AppSettings






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070516%2fnet-custom-service-could-not-start%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Q: Did you get this working?



    SUGGESTION:



    If not, make sure you've done everything in this article, particularly:




    MSDN Walkthrough: Create a Windows service
    app



    Before you can run a Windows service, you need to install it, which
    registers it with the Service Control Manager




    ALSO:



    Q: How are things going with this question: Accessing Config File From Web - No AppSettings






    share|improve this answer



























      0














      Q: Did you get this working?



      SUGGESTION:



      If not, make sure you've done everything in this article, particularly:




      MSDN Walkthrough: Create a Windows service
      app



      Before you can run a Windows service, you need to install it, which
      registers it with the Service Control Manager




      ALSO:



      Q: How are things going with this question: Accessing Config File From Web - No AppSettings






      share|improve this answer

























        0












        0








        0







        Q: Did you get this working?



        SUGGESTION:



        If not, make sure you've done everything in this article, particularly:




        MSDN Walkthrough: Create a Windows service
        app



        Before you can run a Windows service, you need to install it, which
        registers it with the Service Control Manager




        ALSO:



        Q: How are things going with this question: Accessing Config File From Web - No AppSettings






        share|improve this answer













        Q: Did you get this working?



        SUGGESTION:



        If not, make sure you've done everything in this article, particularly:




        MSDN Walkthrough: Create a Windows service
        app



        Before you can run a Windows service, you need to install it, which
        registers it with the Service Control Manager




        ALSO:



        Q: How are things going with this question: Accessing Config File From Web - No AppSettings







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 12 at 2:19









        paulsm4paulsm4

        80.6k9103129




        80.6k9103129





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55070516%2fnet-custom-service-could-not-start%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            1928 у кіно

            Захаров Федір Захарович

            Ель Греко