WCF: The caller was not authenticated by the service.-> System. ServiceModel. FaultException:

Source: Internet
Author: User
Tags biztalk

The caller was not authenticated by the service. ---> System. ServiceModel. FaultException: The request for security token cocould not be satisfied because authentication failed.

This problem mainly occurs when authentication fails. The solution is to check the Security configurations of the Server and Client,

Or disable Security Mode on both sides to allow anonymous access.

WCF Server:

<System. serviceModel>
<Bindings>
<WsHttpBinding>
<Binding name = "NewBinding2">
<Security mode ="None"/>
</Binding>
</WsHttpBinding>
</Bindings>
<Services>

<Service behaviorConfiguration = "DomainWS. DomainServiceV2Behavior"
Name = "DomainWS. DomainServiceV2">
<Endpoint address = "" binding = "wsHttpBinding"BindingConfiguration = "NewBinding2"Contract = "DomainWS. IDomainV2">
<Identity>
<Dns value = "localhost"/>
</Identity>
</Endpoint>
<Endpoint address = "mex" binding = "mexHttpBinding" contract = "IMetadataExchange"/>
</Service>
</Services>

.................

 

Client: BizTalk WCF-WSHttp Send Port

Or BizTalk Dynamic SendPort settings

WCF_AppInbox (WCF. Action) = "http://bta.gb21062.com/AppWS/IApplicationV2/NewAppInbox ";
WCF_AppInbox (WCF. SecurityMode) ="None";

 

Appendix:

Event Type: Warning
Event Source: BizTalk Server 2006
Event Category: BizTalk Server 2006
Event ID: 5743
Date: 2008-12-26
Time: 3:40:28
User: N/
Computer: APP1
Description:
The adapter failed to transmit message going to send port "WcfSendPort_DomainServiceV2_WSHttpBinding_IDomainV2" with URL "http: // eai-devpc2/DomainWS/DomainServiceV2.svc ". it will be retransmitted after the retry interval specified for this Send Port. details: "System. serviceModel. security. securityNegotiationException: The caller was not authenticated by the service. ---> System. serviceModel. faultException: The request for security token cocould not be satisfied because authentication failed.
At System. ServiceModel. Security. SecurityUtils. ThrowIfNegotiationFault (Message message, EndpointAddress target)
At System. ServiceModel. Security. SspiNegotiationTokenProvider. GetNextOutgoingMessageBody (Message incomingMessage, SspiNegotiationTokenProviderState sspiState)
--- End of inner exception stack trace ---

Server stack trace:
At System. ServiceModel. Security. IssuanceTokenProviderBase '1. DoNegotiation (TimeSpan timeout)
At System. ServiceModel. Security. SspiNegotiationTokenProvider. OnOpen (TimeSpan timeout)
At System. ServiceModel. Security. WrapperSecurityCommunicationObject. OnOpen (TimeSpan timeout)
At System. ServiceModel. Channels. CommunicationObject. Open (TimeSpan timeout)
At System. ServiceModel. Security. CommunicationObjectSecurityTokenProvider. Open (TimeSpan timeout)
At System. ServiceModel. Security. SecurityUtils. OpenCommunicationObject (ICommunicationObject obj, TimeSpan timeout)
At System. ServiceModel. Security. SecurityUtils. OpenTokenProviderIfRequired (SecurityTokenProvider tokenProvider, TimeSpan timeout)
At System. ServiceModel. Security. Transport ricsecurityprotocol. OnOpen (TimeSpan timeout)
At System. ServiceModel. Security. WrapperSecurityCommunicationObject. OnOpen (TimeSpan timeout)
At System. ServiceModel. Channels. CommunicationObject. Open (TimeSpan timeout)
At System. ServiceModel. Security. SecurityProtocol. Open (TimeSpan timeout)
At System. ServiceModel. Channels. SecurityChannelFactory '1. clientsecuritychannel' 1. OnOpen (TimeSpan timeout)
At System. ServiceModel. Channels. CommunicationObject. Open (TimeSpan timeout)
At System. ServiceModel. Security. SecuritySessionSecurityTokenProvider. DoOperation (SecuritySessionOperation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
At System. ServiceModel. Security. SecuritySessionSecurityTokenProvider. GetTokenCore (TimeSpan timeout)
At System. IdentityModel. Selectors. SecurityTokenProvider. GetToken (TimeSpan timeout)
At System. ServiceModel. Security. SecuritySessionClientSettings '1. ClientSecuritySessionChannel. OnOpen (TimeSpan timeout)
At System. ServiceModel. Channels. CommunicationObject. Open (TimeSpan timeout)
At System. ServiceModel. Channels. ServiceChannel. OnOpen (TimeSpan timeout)
At System. ServiceModel. Channels. CommunicationObject. Open (TimeSpan timeout)
At System. ServiceModel. Channels. CommunicationObject. Open ()

Exception rethrown at [0]:
At System. Runtime. Remoting. Proxies. RealProxy. HandleReturnMessage (IMessage reqMsg, IMessage retMsg)
At System. Runtime. Remoting. Proxies. RealProxy. PrivateInvoke (MessageData & msgData, Int32 type)
At System. ServiceModel. ICommunicationObject. Open ()
At Microsoft. BizTalk. Adapter. Wcf. Runtime. WcfClient '2. GetChannel [TChannel] (IBaseMessage bizTalkMessage, ChannelFactory '1 & cachedFactory)
At Microsoft. BizTalk. Adapter. Wcf. Runtime. WcfClient '2. SendMessage (IBaseMessage bizTalkMessage )".

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.