Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
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

 
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.
 
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

 
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.




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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.