But tell me, Xiaofeng , when I proposed earlier much of the same that people 
have said today, you said in reply the other day that you HAD used the EXACT 
same URL in your browser (run from the server) as in the sched task. 

So when you refer now to changing the sched task URL to use“not localhost, not 
127.0.0.1 but the public IP address”, are you saying that IS or IS NOT what you 
tested before when you ran the test in your browser on the server? Perhaps you 
thought this was not significant, but it would be.

It’s the IP address (or domain or machine name) in the URL which influences 
what IIS site handles the request. You may have windows auth on in one site, 
and not the other. And you may have been going to different ones all along.

/charlie

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
Xiaofeng Liu
Sent: Tuesday, November 17, 2015 11:48 PM
To: [email protected]
Subject: Re: Re[2]: [cfaussie] CF11 Scheduled Task Not Running - 401 
Unauthorized

 

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.

 

-- 
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