Schedule Tasks

Discussion in 'Hosting Services / Control Panel' started by diablo, Apr 14, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello Forum,

    I am intersted in using the Scheduled Task functionality that is available in the Control Panel.

    From sending an email to [email protected], they state that this the folder that the Scheduled Task is calling needs to have the web.config setup to NTFS.

    So in creating a Scheduled Task, you provide the url, and a user name and password (if you want it secure - which I do).

    Has anyone setup this Scheduled Task, and if so - could you enlighten me on what you had to configure in that particular folders web.config file?

    I have search for NTFS and web.config, but I do not really get a straight answer on this...

    Any help would be great!!!

    Regards.
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Scheduled task doesn't have much to do w/ NTFS unless you want to password protect the page. The scheduler will not work w/ form authentication.

    Please tell us what exactly you want to do and I can make a recommendation.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Hi Bruce,


    I would like to create a directory under the root (say tasks), which contains a .aspx page (say mytasks.aspx), that when called from the 'Scheduled Tasks' in the Control Panel (using the user name and password), the Page_Load method will run.


    I want to provide the user name and password in the Scheduled Task to prevent others from accessing the page (or the folder), but that it works with the Scheduled Tasks functionality that is available.


    Please let me know if this clarifies my intentions of using the 'Scheduled Tasks' from the control panel.


    Regards,


    Diablo.
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    In that case, this is what you need to do
    1. Create the directory using FTP
    2. Use the control panel's web application tool to make the directory an application
    3. Assuming your site is on IIS6, goto the permission manager, select the directory and disable anoymous access
    4. Create a web.config file in the directory. Put the following into you


    <system.web>
    <authentication mode="Windows" />
    </system.web>



    1. Upload the page and the web.config into the directory

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Hi Bruce,

    It appears that since moving the site to a Windows 2008 server that this methodology no longer works...

    Is there something else that needs to be done?

    Regards,

    Diablo
     
  6. Bruce

    Bruce DiscountASP.NET Staff

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page