By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,524 Members | 1,519 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,524 IT Pros & Developers. It's quick & easy.

Building af service

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Morten Snedker" <morten_spammenot_ATdbconsult.dk> schrieb:
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".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
>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
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.