Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is an ASP.NET Web Service? 2

Status
Not open for further replies.

EnemyGateIsDown

Technical User
Oct 3, 2002
235
GB
Hi Guys,

I am trying to write an app which I want to run as a service on the web server.

This application will poll the database every X seconds to find records which meet some criteria. Then based on these records it will send SMTP E-mails.

Is a web service the best way to do this in Visual Studio.NET? I don't really want an application as this will require the server to be logged in which is undesirable.

Thanks in advance for any help.

Cheers,

Chris
 
You need a Windows Service rather than a web service.
 
Yes, a windows service would be a much better option. A web service is usefult for when applications need access to certain methods/classes/functions and you don't want to package those up into a DLL and distribute it - the web service would allow those applications to simply add a web reference to that service and then call those methods/classes/functions.

A windows service could run on your server, regardless of who is logged on and do exactly what you need. If you run into any problems, ask in the VB.NET forum (forum796).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Hi Guys,

Thanks for your help so far. I am following the details in the link you sent but I don't seem to have an option for a Windows service under Visual basic projects???

I am using Visual Studio 2003 v7.1.3088.

Cheers,

Chris
 
It may depend on what version (e.g. Enterprise, Developer etc..) od VS you have. Check out MSDN for more info on those products or ask in the VB.NET forum as the question will be more appropiate there.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
P.s. Is there somewhere that I can download additional Visual Studio 2003 project types?

Chris
 
Not that I know of - it will depend on what I posted above.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Alternatively you could write a console application and use the task scheduler to run it (if you can't run a service).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top