Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 25th, 2004, 07:15 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default Creating a Scheduled Task

Hi,

I have an aspx file that has all the business logic required for firing an email based on the current date.

Now i want to schedule this process ie. no human interaction needed.

How can i achieve this??
Can i write a batch program and give the source to this ASPX file.

Regards

Jaya

Reply With Quote
  #2 (permalink)  
Old February 25th, 2004, 08:20 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

ASP.NET is not intended to be used for scheduled events. My suggestion is to take the code out of the ASPX file and create a simple console application. You shouldn't have make many if any code changes to get it to run at a console. Then you can use the standard OS scheduler to set up an execution schedule for the application.

Peter
------------------------------------------------------
Work smarter, not harder.
Reply With Quote
  #3 (permalink)  
Old February 25th, 2004, 08:28 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks for your response Peter.
I have never worked with such console applications.

Will try to achieve it using Console applications else u will find more some queries from me :)

Jaya

Reply With Quote
  #4 (permalink)  
Old February 25th, 2004, 08:37 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Console apps are pretty simple. (If you are using C# they are a bit harder.) Unless you need to deal with command line arguments it's pretty straight forward. Anything you can do in ASP.NET you can do in a console app (with obvious acception of all the controls and stuff in the System.Web namespace. But it sounds like you aren't using much of that if you wrote a page that just does processing.

Please post back if you have more questions. (And if you do, perhaps the General .Net forum would be a good place for a new thread.)

Peter
------------------------------------------------------
Work smarter, not harder.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add task in Scheduled Task programatically amitjoshipune C# 2 July 31st, 2008 05:42 AM
Scheduled task langer123 Classic ASP Basics 0 March 16th, 2005 11:14 AM
In program Scheduled Task ginoitalo Pro VB 6 4 August 31st, 2004 11:32 PM
[c#]scheduled task maddonuts General .NET 1 July 7th, 2004 11:53 AM
Scheduled Task Ben Access VBA 1 February 24th, 2004 02:05 PM



All times are GMT -4. The time now is 11:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.