WCF Caller not authenticated

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Swys
    New Member
    • Mar 2009
    • 5

    WCF Caller not authenticated

    Hi all,

    Just to clarify in the beginning, I am a beginner at WCF. I've created a web service (using C# and WCF and wshttpbinding). When this service is hosted in IIS on my local network, I am able to access it fine with a simple client I wrote. But when I host it on a remote server (running Windows Web Server 2008) I get an exception when trying to call one of the methods:

    SecurityNegotia tionException - The caller was not authenticated by the service .

    I don't understand this, since the service ran quite happily on my local network. Can anyone please help me on this?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    What type of authorization do you have set for the service?
    Also, I had to add the following to my web.config file to allow the service to be reached
    [code=xml]
    <system.web>
    <webServices>
    <protocols>
    <add name="HttpGet"/>
    <add name="HttpPost"/>
    <add name="AnyHttpSo ap"/>
    </protocols>
    </webServices>
    [/code]

    Comment

    Working...