Actually we are trying implement wshttpbinding for cline and server.also we tried above soln but after 10 min diff. in clock timing of server and client problems strats
The issue illustrates that WCF is unable to verify the security of the message that was passed to the service, it is almost because the system clock was different between the server running the web application and the client machine, according to Microsoft
the client and remote server system's time have certain time difference for security reason. Did you set the localClientSettings for client and localServiceSettings for the service in the config file? and the maxClockSkew needed to be inside the <secureConversationBootstrap>.
sachinvanjir...
0 Points
3 Posts
An unsecured or incorrectly secured fault was received from the other party. See the inner FaultE...
Apr 10, 2012 12:09 PM|LINK
i am getting below error while trying to use WCF service for standalone desktop application.
An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.
we done some soln like below link,
http://social.msdn.microsoft.com/forums/en-US/wcf/thread/0e8c30ab-e5a0-40b1-9722-c1b20a09c8ad/
plz help on this.
Actually we are trying implement wshttpbinding for cline and server.also we tried above soln but after 10 min diff. in clock timing of server and client problems strats
Peter pi - M...
Star
12871 Points
1786 Posts
Re: An unsecured or incorrectly secured fault was received from the other party. See the inner Fa...
Apr 12, 2012 02:32 AM|LINK
The issue illustrates that WCF is unable to verify the security of the message that was passed to the service, it is almost because the system clock was different between the server running the web application and the client machine, according to Microsoft the client and remote server system's time have certain time difference for security reason. Did you set the localClientSettings for client and localServiceSettings for the service in the config file? and the maxClockSkew needed to be inside the <secureConversationBootstrap>.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
sachinvanjir...
0 Points
3 Posts
Re: An unsecured or incorrectly secured fault was received from the other party. See the inner Fa...
Apr 12, 2012 03:17 AM|LINK
Can i get sample for customised binding(for wshttp binding).so i can fix the clockskew
Peter pi - M...
Star
12871 Points
1786 Posts
Re: An unsecured or incorrectly secured fault was received from the other party. See the inner Fa...
Apr 13, 2012 07:57 AM|LINK
You can create a custom binding from a wshttpbinding, as for this, please check this post.
http://stackoverflow.com/questions/4217415/convert-wshttpbinding-to-custombinding
and here is a article about how to set a max clock skew.
http://msdn.microsoft.com/en-us/library/aa738468.aspx
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
sachinvanjir...
0 Points
3 Posts
Re: An unsecured or incorrectly secured fault was received from the other party. See the inner Fa...
Apr 13, 2012 01:14 PM|LINK
Below is App.config on client side,
Clockskew is set but still getting same exception after 5 min.
<binding name="CustomBinding_IService1">
<security defaultAlgorithmSuite="Default" authenticationMode="SecureConversation"
requireDerivedKeys="true" securityHeaderLayout="Strict" includeTimestamp="false"
keyEntropyMode="CombinedEntropy" messageProtectionOrder="SignBeforeEncryptAndEncryptSignature"
messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"
requireSecurityContextCancellation="true" requireSignatureConfirmation="false">
<localClientSettings cacheCookies="true" detectReplays="true"
replayCacheSize="900000" maxClockSkew="00:30:00"
replayWindow="00:30:00" sessionKeyRenewalInterval="10:00:00"
sessionKeyRolloverInterval="00:30:00" reconnectTransportOnFailure="true"
timestampValidityDuration="00:30:00" cookieRenewalThresholdPercentage="60" />
<localServiceSettings detectReplays="true" issuedCookieLifetime="10:00:00"
maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:30:00"
negotiationTimeout="00:30:00" replayWindow="00:30:00" inactivityTimeout="00:30:00"
sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:30:00"
reconnectTransportOnFailure="true" maxPendingSessions="128"
maxCachedCookies="1000" timestampValidityDuration="00:30:00" />
<secureConversationBootstrap authenticationMode="Kerberos">
<localClientSettings cacheCookies="true" detectReplays="true"
replayCacheSize="900000" maxClockSkew="00:30:00"
replayWindow="00:30:00" sessionKeyRenewalInterval="10:00:00"
sessionKeyRolloverInterval="00:30:00" reconnectTransportOnFailure="true"
timestampValidityDuration="00:30:00" cookieRenewalThresholdPercentage="60" />
<localServiceSettings detectReplays="true" issuedCookieLifetime="10:00:00"
maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:30:00"
negotiationTimeout="00:30:00" replayWindow="00:30:00" inactivityTimeout="00:30:00"
sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:30:00"
reconnectTransportOnFailure="true" maxPendingSessions="128"
maxCachedCookies="1000" timestampValidityDuration="00:30:00" />
</secureConversationBootstrap>
</security>
<textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
messageVersion="Default" writeEncoding="utf-8">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
</textMessageEncoding>
<httpTransport manualAddressing="false" maxBufferPoolSize="524288"
maxReceivedMessageSize="65536" allowCookies="false" authenticationScheme="Basic"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
keepAliveEnabled="true" maxBufferSize="65536" proxyAuthenticationScheme="Basic"
realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
useDefaultWebProxy="true" />
</binding>