i have created service show "hello world" message when starts.. onstart method of service consists following code:
protected override void onstart(string[] args) { system.windows.forms.messagebox.show("hello world"); }
the service installed perfectly, when start service following error.
the rucservice on local computer started , stopped. services stop automatically if have no work do, example, performance logs , alert service.
so not show message hello world. why happening?
don't try use ui elements (windows forms) service. service shouldn't have ui component. if there needs user interface configuration, etc., have service pull settings database , create separate application managing configuration.
Comments
Post a Comment