c# - the caller was not authenticated by the service -- when using host name in site and call locally -


on 1 production server have wcf service in format of:

http://[host name]/[oneservice.svc] 

.

when client app calls same server, throws error of: "the caller not authenticated service...... request security token not satisfied because authentication failed".

there lot of similar topics on internet. seems not same situation. 1 is:

1, if client app runs on server within same domain, or runs on server within different domain (but these 2 domains trusted each other), works;

2, if client app runs on same server hosts wcf service, throws error above.

3, however, if change service url

http://localhost/[oneservice.svc] 

, (2) works!

from observed in 1/2/3, guessing may not code or config issue? (service can configured use either http or https.)

any suggestion appreciated!

this not perfect solution work me.

i have done regedit ( please @ risk).

you have create entry domain in backconnectionhostnames key.

http://blog.blksthl.com/2013/05/07/a-quick-guide-to-configuring-the-loopback-check/

also please give exact authentication error if not work.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -