Running appp as service

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

How can I make my vb.net app to run as service? This app reads a dataset
from a web service method and saves it in a local access table.

Thanks

Regards
 
* "John said:
How can I make my vb.net app to run as service? This app reads a dataset
from a web service method and saves it in a local access table.

If you are using VS.NET Professional, you can create a new project of
type "Windows Service" and add the source files to it.
 
Hi Herfried,

And if I'm not?

Bernie Yaeger

Herfried K. Wagner said:
If you are using VS.NET Professional, you can create a new project of
type "Windows Service" and add the source files to it.
 
Don't put any UI into it
Don't put any UI into it (keep repeating that :-))

Also remember that a service runs under either the
localsystem account or a specific user account.
This means that your service can't do anything that
that account can't do. E.g. for the localsystem account
it means no network access.

/claes


John said:
Are there any restrictions on what can be coded inside a service?

Thanks

Regards
 
Thanks. How do I install the service? When I try to run the built exe I get
the message on the lines 'use installutil.exe...' etc. Where do I get
installutil.exe from?

Thanks

Regards

Claes Bergefall said:
Don't put any UI into it
Don't put any UI into it (keep repeating that :-))

Also remember that a service runs under either the
localsystem account or a specific user account.
This means that your service can't do anything that
that account can't do. E.g. for the localsystem account
it means no network access.

/claes
 
InstallUtil.exe in the folder where the framework is
installed (eg C:\WINNT\Microsoft.NET\Framework\v1.1.4322)

Look it up in MSDN for more info. I've never written
a service in .NET so I don't really know how to install
it. In the old days I used CreateService

/claes
 
Back
Top