Solved

Schedule ASPX to run

Posted on 2004-10-18
10
826 Views
Last Modified: 2007-12-19
I need to run an ASPX page on a daily basis.  I tried to use the windows scheduler but instead of running the page via IIS, it tries to open it in Visual Studio.  Is there a way arround this or does anyone have another suggestion.

Thanks
0
Comment
Question by:dbashley1
  • 3
  • 2
  • 2
  • +3
10 Comments
 
LVL 3

Expert Comment

by:yellowjetski
ID: 12339001
When you run it, do not run it from the C:\Inetpub\wwwroot\TESTING\Testing.aspx path

run it from http://localhost/TESTING/Testing.aspx path

Let me know if this helps

-Jim
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 12339030
Automated processes through aspx aren't recommended. Instead you'd be better of writing a small console application which you run through as, or create a (web)service. if it is a webservice you might want to add the following header to the method
<SoapDocumentMethod(OneWay:=true), WebMethod(Description:="DESCRIPTION")>

Regards,
CJ.
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 12339038
...which you run through as
=
which you run through AT.
0
 
LVL 5

Expert Comment

by:kollu
ID: 12339092
I never scheduled program through aspx.But,it is better write program in VB and scheduled the program.
0
 
LVL 9

Assisted Solution

by:hismightiness
hismightiness earned 400 total points
ID: 12339100
You can do this throught Windows Scheduler.  Just map the scheduled file to be executed as your default browser and add the URL to the end of it:

"C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://www.excite.com/
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 9

Expert Comment

by:hismightiness
ID: 12339105
I just ran a couple tests, and it worked perfectly.
0
 
LVL 3

Accepted Solution

by:
yellowjetski earned 100 total points
ID: 12339138
To be more percise on "run it from http://localhost/TESTING/Testing.aspx path"

"C:\Program Files\Internet Explorer\iexplore.exe" http://localhost/TESTING/Testing.aspx

0
 

Author Comment

by:dbashley1
ID: 12339203
CJ,

Why is it not recommended to schedule an aspx?  The reason I want to schedule the aspx is that I have a significant number of class objects build in my ASP.Net Application that I need to be able to access.   Writing a Web Service for all of them would be quite a bit of work.

Daniel
0
 
LVL 33

Expert Comment

by:raterus
ID: 12339719
You can't schedule an aspx to execute, rather you must make a request of the page with another program.  Usually this is a browser, but if you want to schedule the aspx page please look into this utility program "wget" which you can download here, http://www.gnu.org/software/wget/wget.html, windows binaries are available if you need them here ftp://sunsite.dk/projects/wget/windows/.  

You should be able to create a scheduled task using this program in order to schedule your aspx, you can also save the html "results" of the requested page to a file, for archive reasons if need be.

Hope this helps!
--Michael
0
 
LVL 22

Expert Comment

by:CJ_S
ID: 12340451
dbashley1,

Loading a webpage (html, asp, php, aspx) has some limitations and issues. Most of them due to the nature of IIS. For example a timeout can occur while loading the page.
While I am thinking about it, I guess that most problems that can occur can easily be fixed with good IIS settings (especially in IIS 6).

Still I would go for a small scheduled console application. It runs in it's own context and is inaccessible for IIS processes. With well written class objects / services you should be able to quickly change your ASPX page to a console application, and take advantage of a lot of other namespaces.

Glad your question was solved though.

CJ.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
HTML table 7 54
WPF issue with Trigger 2 68
File Upload Control on a ASP.NET Overlay Page 1 24
Achieve json result 2 32
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now