Home > Net >  The.net framework may use topself deployment services quoted a 1053 error
The.net framework may use topself deployment services quoted a 1053 error

Time:05-27


As shown in figure, I am using.net framework of five, I think may be I read configuration files for other problems, such as so I comment business code, but found that still can not run,
Bosses look, here is the code,

The static void Main (string [] args)
{
//the Console. WriteLine (ConfigHelper. GetSectionValue (" Connections: OARW "));
String name="atest"/* ConfigHelper. GetSectionValue (" TopShelf: name ")?? "${Guid. NewGuid () : N}" */.
HostFactory. Run (x=& gt;
{
X.S ervice (s=& gt;
{
S.C onstructUsing (x=& gt; New OneOnOneTimerService ());
S. henStarted (x=& gt; X.S tart ());
S. henStopped (x=& gt; X.S top ());
});

X.S tartAutomatically ();
X.R unAsLocalSystem ();

X.R unAsLocalService ();
X.S etDisplayName (/* ConfigHelper GetSectionValue (" TopShelf: Display ")?? */name);
X.S etDescription (/* ConfigHelper GetSectionValue (" TopShelf: the Description ")?? */name);
X.S etServiceName (name);
});
The Console. ReadKey ();
}


Public void the Start ()
{
//_quartz PauseJob ();
}
Public void the Stop ()
{
//_quartz ResumeJob ();
}
  •  Tags:  
  • C#
  • Related