CFSchedules unauthorized access

Posted on 2004-11-10
Last Modified: 2013-12-24
I've got a couple of tasks scheduled on our server to access a particular directory. I've password protected this directory on the windows side. When I access the directory through my browser, it prompts me to enter my password info. I type it in and everything works good. When I unleash a CFSchedule on the template using the same information, the published file is returned with 402.1 error, unauthorized access. The cf templates aren't being excuted.

Has anyone encountered this problem before?
Question by:black0ps
    LVL 5

    Assisted Solution

    do you guys have a proxy server?  and if so, have you specified the proxy settings within it?  
    that's just a long shot.. but tis something
    LVL 6

    Assisted Solution

    Long shot number two:
    Is the ColdFusion service running under a user that hasn't got access to that directory? Shouldn't really matter, since you provide the scheduled task with a username/password. But then again, you never know...
    LVL 17

    Accepted Solution

    Yes, have you put the username and password in the schedule itself?
    You might want to include the domain as well domain\username
    LVL 7

    Author Comment

    You think the adding domain\username to the schedule would have an affect? I might give that try. I believe CF is running under a different username, but I have supplied the username and password in cfschedule. (No proxy server btw)

    -- Ian
    LVL 7

    Author Comment

    Never could figure this one out. So we just removed the password protect on that directory. Thanks for your help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    760 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

    11 Experts available now in Live!

    Get 1:1 Help Now