Answered by:
Security negotiation failed because the remote party did not send back a reply in a timely manner...

Question
-
User-893002196 posted
Hi All,
I have
web.config
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IAuthorizationService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="5242880" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="5242880" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
<binding name="WSHttpBinding_IAlarmService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address=http://localhost:3333/HRMSBusiness/Service%20References/AuthorizationService/AuthorizationService.svc" binding="wsHttpBinding bindingConfiguration="WSHttpBinding_IAuthorizationService" contract="AuthorizationService.IAuthorizationService" name="WSHttpBinding_IAuthorizationService" />
<endpoint address="http://localhost:3333/HRMSCore/Service%20References/AlarmService/AlarmService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IAlarmService" contract="AlarmService.IAlarmService" name="WSHttpBinding_IAlarmService" />
</client>
</system.serviceModel>
But i got error:-
Message
"Security negotiation failed because the remote party did not send back a reply in a timely manner. This may be because the underlying transport connection was aborted." string
StackTrace
StackTrace "\r\nServer stack trace: \r\n at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)\r\n at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open(TimeSpan timeout)\r\n at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)\r\n at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)\r\n at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)\r\n at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)\r\n at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)\r\n at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)\r\n\r\nException rethrown at [0]: \r\n at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n at GotWell.HRMS.HRMSBusiness.AuthorizationService.IAuthorizationService.GetUserValidationXML(String _paramXmlText)\r\n at GotWell.HRMS.HRMSBusiness.AuthorizationService.AuthorizationServiceClient.GetUserValidationXML(String _paramXmlText) in C:\\Users\\micheale\\Documents\\Visual Studio 2010\\Projects\\GOTWELLHRMS\\HRMSWeb\\HRMSBusiness\\Service References\\AuthorizationService\\Reference.cs:line 63\r\n at GotWell.HRMS.HRMSBusiness.Authorization.AuthorizationBll.GetUserValidation(String _userId, String _passwd, String _application) in C:\\Users\\micheale\\Documents\\Visual Studio 2010\\Projects\\GOTWELLHRMS\\HRMSWeb\\HRMSBusiness\\Authorization\\AuthorizationBll.cs:line 218" string
Please advise.
Thank you.
Regards,
Micheale
Wednesday, January 16, 2013 10:08 PM
Answers
-
User-1662538993 posted
Just check this similar kind of thread-
http://forums.asp.net/t/1342258.aspx/1
It says delete your service reference and add one more time.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, January 17, 2013 12:28 PM