Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Schedule ASPX to run

Posted on 2004-10-18
10
Medium Priority
?
871 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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 1600 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
 
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 400 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

704 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