cancel
Showing results for 
Search instead for 
Did you mean: 

The caller was not authenticated by the service. - while connecting to BP server

SandeepKutwal
Level 4
Hi Team, Getting error as "The caller was not authenticated by the service." when tried to connect to BP server. Connection details are good, BP client is on another domain but the network connection is already working. Can anyone suggest & help on below error message? System.ServiceModel.Security.SecurityNegotiationException: The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could 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.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)    at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)    at System.ServiceModel.Channels.CommunicationObject.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 operation, 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.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryGetChannel()    at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.SyncWaiter.TryWait(TChannel& channel)    at System.ServiceModel.Channels.ReliableChannelBinder`1.ChannelSynchronizer.TryGetChannel(Boolean canGetChannel, Boolean canCauseFault, TimeSpan timeout, MaskingMode maskingMode, TChannel& channel)    at System.ServiceModel.Channels.ClientReliableChannelBinder`1.Request(Message message, TimeSpan timeout, MaskingMode maskingMode)    at System.ServiceModel.Channels.RequestReliableRequestor.OnRequest(Message request, TimeSpan timeout, Boolean last)    at System.ServiceModel.Channels.ReliableRequestor.Request(TimeSpan timeout)    at System.ServiceModel.Channels.ClientReliableSession.Open(TimeSpan timeout)    at System.ServiceModel.Channels.ReliableRequestSessionChannel.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 BluePrism.AutomateAppCore.ServerManagerWCF.OpenConnection(clsDBConnectionSetting connectionSetting, Dictionary`2 keys, User& systemUser)    at BluePrism.AutomateAppCore.ServerFactory.Validate(clsDBConnectionSetting connectionSetting)    at BluePrism.Config.ConnectionDetail.HandleTestClick(Object sender, EventArgs e)  
6 REPLIES 6

Hi Sandeepk,   well, if you still haven't resolved it then you have to provide more details about which type of communication you chose WCF or old .NET Remoting? As .NET Remoting does not support cross-domains unless these are in Trusted Forrest.   Regards,   Zdenek

Ericwang
Level 2
we also facing the same one, anybody know how to solve this. @Sandeepk if you got the answer , please share.  

SandeepKutwal
Level 4
@zdenek.kabatek , Thanks for your reply ,  still haven't resolved issue and struggling . Below is the information required for you to refer  : Connection Type: Blue Prism Server  Connection Mode: WCF: SOAP with Message Encryption & Windows Authentication . Both domains are within the same Forest, never successfully connected this user/machine.   Thanks, Sandeep K  

Hi, ok, I would start with the simplest step to isolate network issues. 1. on your Blue Prism Application Server you are running Blue Prism Windows Service, right? 2. Assuming point above is correct, set up a configuration on Blue Prism Application Server which will go through the Windows Service and not directly to database - the same way as you do it on BP Client. 3. Sign Out of Blue Prism GUI on Blue Prism Application Server and sign in through the newly created connection (through windows service). Does it work? Zdenek

I forgot to ask as I assumed you did that but may be you did not - did you install a certificate? That is a must when using this type of connection.

SandeepKutwal
Level 4
Thanks, lot @zdenek.kabatek, I will be following up your suggestions which I look very valid ,  further to resolve the connection issue. Also you mentioned that .NET Remoting does not support cross-domains unless these are in Trusted Forrest, then what should be a method you will suggest for such connections?  FYI : Our both machines (Blue prism client and App server ) domains are NOT within the same Forest and we are using WCF: SOAP with Message Encryption & Windows Authentication as connection mode , Connection Type as Blue Prism server. We are getting below error message : System.ServiceModel.Security.SecurityNegotiationException: The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could 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 --- Can you please suggest further to resolve the issue , if you have more points looking at above issue state ? Thanks, SandeepK