Failed to Authenticate the Current User Error
Posted: Fri Aug 23, 2013 5:46 pm
Hi,
I am getting the below error message when trying to open a Softpro order. I am following the example givin in the SDK documentation. The lines of code and the error message are below. Also, I get the following when trying to go to the server via the browser "HTTP Error 503. The service is unavailable". Does anyone know how to fix this. Thanks.
Code:
NetworkCredential credentials = new NetworkCredential(@"username", @"password", SoftPro.ClientModel.Constants.ServerDomain);
SelectServer sps = new SelectServer(null, new Uri(@"http://SELECT-MID:8080/"), credentials);
OrderTracking ot = sps.GetService<OrderTracking>();
Error msg:
ProFormApiSample.vshost.exe Warning: 0 : An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.
Fault Code: http://www.w3.org/2003/05/soap-envelopeSender -> http://docs.oasis-open.org/wss/2004/01/ ... urityToken
Reason: An error occurred when processing the security tokens in the message.
Message: An error occurred when processing the security tokens in the message.
ProFormApiSample.vshost.exe Information: 0 : Failed to authenticate the current user. An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.
A first chance exception of type 'System.Security.SecurityException' occurred in SoftPro.ClientModel.dll
I am getting the below error message when trying to open a Softpro order. I am following the example givin in the SDK documentation. The lines of code and the error message are below. Also, I get the following when trying to go to the server via the browser "HTTP Error 503. The service is unavailable". Does anyone know how to fix this. Thanks.
Code:
NetworkCredential credentials = new NetworkCredential(@"username", @"password", SoftPro.ClientModel.Constants.ServerDomain);
SelectServer sps = new SelectServer(null, new Uri(@"http://SELECT-MID:8080/"), credentials);
OrderTracking ot = sps.GetService<OrderTracking>();
Error msg:
ProFormApiSample.vshost.exe Warning: 0 : An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.
Fault Code: http://www.w3.org/2003/05/soap-envelopeSender -> http://docs.oasis-open.org/wss/2004/01/ ... urityToken
Reason: An error occurred when processing the security tokens in the message.
Message: An error occurred when processing the security tokens in the message.
ProFormApiSample.vshost.exe Information: 0 : Failed to authenticate the current user. An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.
A first chance exception of type 'System.Security.SecurityException' occurred in SoftPro.ClientModel.dll