Skip to main content
Inspiring
June 12, 2009
Answered

Cannot get scheduled task to run

  • June 12, 2009
  • 2 replies
  • 1674 views

Hi Folks,

Googled lots for this but cant find the answer. Sorry to have to post.

When i browse to the file it works fine, but wont execute from cfadmin. Can anyone help?

I've checked permissions and they seem to be ok.

Any help much appreciated.

Thankyou

    This topic has been closed for replies.
    Correct answer ilssac

    matthisco wrote:

    Any ideas?

    Turn off the "Windows Integrated Security" setting in your IIS web server control panel for this file since ColdFusion can not send a WWW-Authenticate header for a scheduled task HTTP request.

    2 replies

    ilssac
    Inspiring
    June 12, 2009

    99.387% of the time that I see this problem reported it is a ColdFusion application server running on an IIS web server with Windows Integrated Security turned on in the IIS web server.

    Windows Integrated Security allows a windows browser on a windows os to access windows web server using the users windows domain account creditionals.  The problem with a ColdFusion scheduled task is that it is not a Microsoft product.

    The solution is to turn off the Windows Integrated Security for the file and|or folder that the scheduled task is trying to run.

    tclaremont
    Inspiring
    June 12, 2009

    Start by checking the Output to file checkbox. Then indicate a text file to write to.

    Schedule the task for some point in the next five minutes.

    Wait for the time to pass

    Read the text file that was created.

    Oftentimes it will reveal that an error occured, and say what type of error.

    As for permissions, are you checking the persmissions in your web server (IIS???) or in your Windows folder?

    You need to go to the web server interface, and make sure the file in question is allowed to be run by whatever account is used to start the ColdFusion service, since THAT is the user as far as the execution of this file is concerned.

    matthiscoAuthor
    Inspiring
    June 12, 2009

    Thanks very much for your reply.

    I got this error:

    You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.

    Any ideas?

    ilssac
    ilssacCorrect answer
    Inspiring
    June 12, 2009

    matthisco wrote:

    Any ideas?

    Turn off the "Windows Integrated Security" setting in your IIS web server control panel for this file since ColdFusion can not send a WWW-Authenticate header for a scheduled task HTTP request.