I figured this out, sort of. Now I changed sched task URL to use the public
IP address of the server, I got status 200.

So not localhost, not 127.0.0.1 but the public IP address. I guess this is
due to the server got multiple NICs so that localhost cannot be resolved
somehow?

On Wed, Nov 18, 2015 at 3:39 PM, <[email protected]> wrote:

> Hi Xiaofeng,
>
> This is not CF, it is all about IIS config.
>
> Put a simple .txt file and try to fetch it using CFHTTP, 100% you will end
> up with the same HTTP error 401.
>
> Why? Browser (no matter if it running in generic or private browsing mode)
> is using your credentials (domain or local account) to negotiate access
> with IIS, while CF server is run without these permissions.
>
> Google "http error 401 IIS" and you can find following link with 5 reasons
> IIS refuses to authorize CF:
>
> http://blogs.msdn.com/b/david.wang/archive/2005/07/14/howto-diagnose-iis-401-access-denied.aspx
>
> So, check your IIS logs for sub-401-code to determine cause of your
> problem.
>
> Cheers,
> Dmitry.
>
>
>
> On Wed, Nov 18, 2015 at 15:02, Xiaofeng Liu <[email protected]>
> wrote:
>
> I tried doing a <cfabort> at the very top of the sched task template, it
> came back with same error - 401 :(
>
> On Wed, Nov 18, 2015 at 12:46 PM, Mark King <[email protected]> wrote:
>
> What happens if you add some text at the top of the page that is called
> and then do a <cfabort>? Do you still get the error in the CF Admin.
>
> I am wondering if there is something in the page you are calling throwing
> the error, not necessarily CF itself.
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Xiaofeng Liu
> *Sent:* Wednesday, 18 November 2015 11:29 AM
>
> *To:* [email protected]
> *Subject:* Re: [cfaussie] CF11 Scheduled Task Not Running - 401
> Unauthorized
>
>
> Now I don't know what else I can go ahead with this one.
>
> I checked the web.config and I don't see any requestFiltering settings.
> Also from within IIS I also checked the Request Filtering section does not
> seem to have tricky things.
>
> So I went ahead and create a brand new site on the same server with a
> different port. I made that site point to the same web root of the existing
> one. Re-ran the wsconfig as administrator from the cfusion instance (the
> only one I have at the moment) and tested again. It turned out to be the
> same result. I can do it from the browser (now on a different port), but
> when I run it from CF Admin, bang, 401.
>
> What is not making sense to me, still, is when I tried CFHTTP to the URL
> of the sched task template I saw the dump for WWW-Authenticate is like this:
>
> [image: Inline image 1]
>
> I mean I don't think Windows Authentication is even enabled. What?
>
>
>
> On Tue, Nov 17, 2015 at 8:25 PM, Charlie Arehart <
> [email protected]> wrote:
>
> Dale, yep. He’s confirmed that in response to some other messages in the
> thread here.
>
> /charlie
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Dale Fraser
> *Sent:* Tuesday, November 17, 2015 2:14 AM
> *To:* [email protected]
> *Subject:* Re: [cfaussie] CF11 Scheduled Task Not Running - 401
> Unauthorized
>
> Can u browse to the url from the server
>
> Ie can the server resolve DNS and the url
>
> Regards
> Dale Fraser
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cfaussie.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
> Best regards,
>
> Xiaofeng,^_^
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cfaussie.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cfaussie.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
> --
> Best regards,
>
> Xiaofeng,^_^
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cfaussie.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/cfaussie.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Best regards,

Xiaofeng,^_^

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.

Reply via email to