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
 
(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  wrote: I tried doing a  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  wrote:

What happens if you add some text at the top of the page that is called and 
then do a ? 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: cfaussie@googlegroups.com (mailto:cfaussie@googlegroups.com) 
[mailto:cfaussie@googlegroups.com (mailto:cfaussie@googlegroups.com)] On Behalf 
Of Xiaofeng Liu
Sent: Wednesday, 18 November 2015 11:29 AM
To: cfaussie@googlegroups.com (mailto:cfaussie@googlegroups.com)
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:
I mean I don't think Windows Authentication is even enabled. What?
On Tue, Nov 17, 2015 at 8:25 PM, Charlie Arehart  wrote:
Dale, yep. He’s confirmed that in response to some other messages in the thread 
here.

/charlie
From: cfaussie@googlegroups.com (mailto:cfaussie@googlegroups.com) 
[mailto:cfaussie@googlegroups.com (mailto:cfaussie@googlegroups.com)] On Behalf 
Of Dale Fraser
Sent: Tuesday, November 17, 2015 2:14 AM
To: cfaussie@googlegroups.com (mailto:cfaussie@googlegroups.com)
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 cfaussie+unsubscr...@googlegroups.com 
(mailto:cfaussie+unsubscr...@googlegroups.com).
To post to this group, send email to cfaussie@googlegroups.com 
(mailto:cfaussie@googlegroups.com).
Visit this group at http://groups.google.com/group/cfaussie 
(http://groups.google.com/group/cfaussie).
For more options, visit https://groups.google.com/d/optout 
(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 cfaussie+unsubscr...@googlegroups.com 
(mailto:cfaussie+unsubscr...@googlegroups.com).
To post to this group, send email to cfaussie@googlegroups.com 
(mailto:cfaussie@googlegroups.com).
Visit this group at http://groups.google.com/group/cfaussie 
(http://groups.google.com/group/cfaussie).
For more options, visit https://groups.google.com/d/optout 
(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 cfaussie+unsubscr...@googlegroups.com 
(mailto:cfaussie+unsubscr...@googlegroups.com).
 To post to this group, send email to cfaussie@googlegroups.com 
(mailto:cfaussie@googlegroups.com).
 Visit this group at http://groups.google.com/group/cfaussie 
(http://groups.google.com/group/cfaussie).
 For more options, visit https://groups.google.com/d/optout 
(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 cfaussie+unsubscr...@googlegroups.com 
(mailto:cfaussie+unsubscr...@googlegroups.com).
 To post to this group, send email to cfaussie@googlegroups.com 
(mailto:cfaussie@googlegroups.com).
 Visit this group at http://groups.google.com/group/cfaussie 
(http://groups.google.com/group/cfaussie).
 For more options, visit https://groups.google.com/d/optout 
(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 cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.

Reply via email to