Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I resolved this issue by adding the machine key on the service host web.config file.</p> <p>The service trace log didn't help. It only gave me "Message security verification failed.". Then I enabled the wcf service event log for the service host web.config file using,</p> <pre><code> &lt;configuration&gt; &lt;system.serviceModel&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="NewBehavior"&gt; &lt;serviceSecurityAudit auditLogLocation="Application" serviceAuthorizationAuditLevel="Failure" messageAuthenticationAuditLevel="Failure" suppressAuditFailure="true" /&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;/system&gt; &lt;/configuration&gt; </code></pre> <p>I got the following in the computer application event log which helped, </p> <blockquote> <p>Event Type: Error Event Source: ServiceModel Audit 4.0.0.0 Event Category: MessageAuthentication Event ID: 4 Date: 30/01/2013 Time: 3:18:27 PM User: N/A Computer: CENTDAUD05109DL Description: Message authentication failed. Service: ://mymachine:44304/UploadService.svc Action: <a href="http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT" rel="nofollow">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT</a> ClientIdentity: ActivityId: cf20ce8b-2e8c-45b5-9ab6-adc5051080f8 ProviderException: <strong>You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key</strong>.</p> </blockquote> <p>I then added the machine key to the service host web.config and it worked. Below is the sample machine key.</p> <pre><code> &lt;machineKey validationKey= "5AD524EF7BEB32A479F8095F8BF7653680066ADE66B5C78F80C3DC1F90 AA3D766F2B69304BFF88DEABEDE1E66D463C81FDEE0FC1A391AD90A6FD1294E7D243B1" decryptionKey= "0D7AE7BC7581976D76AC1D68C71BCBA978895CB792DC4F7B9F0D67774378A351" validation="SHA1" decryption="AES"/&gt; </code></pre> <p>References,</p> <p><a href="http://blogs.microsoft.co.il/blogs/urig/archive/2011/01/23/wcf-quot-an-error-occurred-when-verifying-security-for-the-message-quot-and-service-security-audit.aspx" rel="nofollow">http://blogs.microsoft.co.il/blogs/urig/archive/2011/01/23/wcf-quot-an-error-occurred-when-verifying-security-for-the-message-quot-and-service-security-audit.aspx</a></p> <p><a href="http://intrepiddeveloper.wordpress.com/2008/08/07/security-event-logging-auditing/" rel="nofollow">http://intrepiddeveloper.wordpress.com/2008/08/07/security-event-logging-auditing/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload