Building af service

  • Thread starter Thread starter Morten Snedker
  • Start date Start date
M

Morten Snedker

I've made quite a simple little exe:

Determine the remaining space on a partition, send e-mail when it gets
to low.

However, I'd rather have it as an "invisible" service running in the
background (as it runs on a server and no one may be logged on).

I've tried making a service, but classes like System.Web.Mail and
System.Management - that I use in the exe-project - are not
accessible. I thought I would just implement these as I'd do in an
ordinary application, but reckon that's not the case.

Which way should I go instead? Create dll's with the functionality and
call these instead...or how should I approach it?

Thx for any help.


Regards /Snedker
 
Morten Snedker said:
I've tried making a service, but classes like System.Web.Mail and
System.Management - that I use in the exe-project - are not
accessible.

Maybe your project was lacking references to "System.Management.dll" and
"System.Web.dll".
 
Maybe your project was lacking references to "System.Management.dll" and
"System.Web.dll".

Exactly. The second I saw your response, it hit me... thx. ;-)

Regards /Snedker
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top