title: WCF Security processor was unable to find a security header in the message
body: <p>First off, i'm a WCF Novice so it is very possible i'm doing something very trivial very wrong. Anyhow, i'm currently in the proces of developing a WCF service which uses wsHttpBinding in order to communicate, and the clientCredentialType Username.</p>
  
  <p>WCF Dictates the use of a credential in order to encrypt the communication (i've set this up "quick and dirty" since i don't have the production certs yet.).</p>
  
  <p>When i'm developing or testing the service straight from visual studio so the address becomes something like <a href="http://localhost:123223/Checks.svc" rel="nofollow">http://localhost:123223/Checks.svc</a> everything works fine, how ever if i deploy the exact project to a website on my development machine i the following exception:</p>
  
  <blockquote>
    <p>An unsecured or incorrectly secured fault was received from the other
    party. See the inner FaultException for the fault code and detail.</p>
  </blockquote>
  
  <p>With the following stacktrace:</p>
  
  <blockquote>
    <p>Server stack trace:     at
    System.ServiceModel.Channels.SecurityChannelFactory<code>1.SecurityRequestChannel.ProcessReply(Message
    reply, SecurityProtocolCorrelationState correlationState, TimeSpan
    timeout)    at
    System.ServiceModel.Channels.SecurityChannelFactory</code>1.SecurityRequestChannel.Request(Message
    message, 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.ServiceChannel.OnOpen(TimeSpan timeout)<br>
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan
    timeout)    at
    System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel
    channel, TimeSpan timeout)    at
    System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan
    timeout, CallOnceManager cascade)    at
    System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan
    timeout)    at System.ServiceModel.Channels.ServiceChannel.Call(String
    action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins,
    Object[] outs, TimeSpan timeout)    at
    System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation)    at
    System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
    message)</p>
    
    <p>Exception rethrown at [0]:     at
    System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
    reqMsg, IMessage retMsg)    at
    System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;
    msgData, Int32 type)    at
    TestCreditExchangeWCFServices.CreditExchange.WCF.Services.IChecks.CreditCheck(CreditCheck
    creditCheck1)    at
    TestCreditExchangeWCFServices.CreditExchange.WCF.Services.ChecksClient.CreditCheck(CreditCheck
    creditCheck1) in
    D:\Projects\Temp\TestCreditExchangeWCFServices\TestCreditExchangeWCFServices\Service
    References\CreditExchange.WCF.Services\Reference.cs:line 1793    at
    TestCreditExchangeWCFServices.MainWindow.btnLite_Click(Object sender,
    RoutedEventArgs e) in
    D:\Projects\Temp\TestCreditExchangeWCFServices\TestCreditExchangeWCFServices\MainWindow.xaml.cs:line
    39</p>
  </blockquote>
  
  <p>Server configuration:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;wsHttpBinding&gt;
          &lt;binding name="HttpBinding"&gt;
            &lt;security mode="Message"&gt;
              &lt;message clientCredentialType="UserName"/&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/wsHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;services&gt;
        &lt;service behaviorConfiguration="ServiceBehavior" name="CreditExchange.WCF.Services.Checks"&gt;
          &lt;endpoint address="" binding="wsHttpBinding"
            bindingConfiguration="HttpBinding" contract="CreditExchange.WCF.Services.IChecks"&gt;
            &lt;identity&gt;
              &lt;dns value="localhost"/&gt;
            &lt;/identity&gt;
          &lt;/endpoint&gt;
          &lt;endpoint address="mex" binding="mexHttpBinding"  contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="ServiceBehavior"&gt;
            &lt;serviceMetadata httpGetEnabled="true" /&gt;
            &lt;!--&lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;--&gt;
            &lt;serviceAuthorization principalPermissionMode="UseAspNetRoles" roleProviderName="NHibernateRoleProvider" /&gt;
            &lt;serviceCredentials&gt;
              &lt;serviceCertificate findValue="localhost" x509FindType="FindBySubjectName"
                                storeLocation="LocalMachine" storeName="My" /&gt;
              &lt;userNameAuthentication userNamePasswordValidationMode="MembershipProvider"
                membershipProviderName="CredentialsProvider" /&gt;
            &lt;/serviceCredentials&gt;
            &lt;errorHandler /&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
      &lt;extensions&gt;
        &lt;behaviorExtensions&gt;
          &lt;add name="errorHandler"
                type="Common.Library.WCF.Exceptions.UnhandledExceptionHandlerExtension, Common.Library" /&gt;
        &lt;/behaviorExtensions&gt;
      &lt;/extensions&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Client configuration:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;wsHttpBinding&gt;
          &lt;binding name="WSHttpBinding_IChecks" 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"&gt;
            &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
            &lt;reliableSession ordered="true" inactivityTimeout="00:10:00"
                enabled="false" /&gt;
            &lt;security mode="Message"&gt;
              &lt;transport clientCredentialType="Windows" proxyCredentialType="None"
                  realm="" /&gt;
              &lt;message clientCredentialType="UserName" negotiateServiceCredential="true"
                  algorithmSuite="Default" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/wsHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;!--&lt;endpoint address="http://localhost:52744/Checks.svc" behaviorConfiguration="ClientBehavior" binding="wsHttpBinding"
            bindingConfiguration="WSHttpBinding_IChecks" contract="CreditExchange.WCF.Services.IChecks"
            name="WSHttpBinding_IChecks"&gt;--&gt;
        &lt;endpoint address="http://localhost/CreditExchange.WCF.Services/Checks.svc" behaviorConfiguration="ClientBehavior" binding="wsHttpBinding"
          bindingConfiguration="WSHttpBinding_IChecks" contract="CreditExchange.WCF.Services.IChecks"
          name="WSHttpBinding_IChecks"&gt;
          &lt;identity&gt;
            &lt;dns value="localhost" /&gt;
          &lt;/identity&gt;
        &lt;/endpoint&gt;
      &lt;/client&gt;
      &lt;behaviors&gt;
        &lt;!-- Needed because otherwise we get errors because the Cert chain can not be verified --&gt;
        &lt;endpointBehaviors&gt;
          &lt;behavior name="ClientBehavior"&gt;
            &lt;clientCredentials&gt;
              &lt;serviceCertificate&gt;
                &lt;authentication certificateValidationMode="None" /&gt;
              &lt;/serviceCertificate&gt;
            &lt;/clientCredentials&gt;
          &lt;/behavior&gt;
        &lt;/endpointBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>I've googled it and i've seen mentioning of timestamp problems causing this issue but i simply do not understand how on the exact same machine something that runs in a VS Debug environment runs fine, but published throws an error which i can't wrap my head around.</p>
  
  <p>I enabled tracing on the client which shows the following exception (not that that makes sense to me):</p>
  
  <pre><code>Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties.   This can occur if the service is configured for security and the client is not using security.
  </code></pre>
  
  <p>I've traced two messages, one succesfull (on my debugged version) and one which fails, i'm looking at differences, and the only thing i can see is the Via tag (one aims at my FQDN for some reason, instead of localhost) And the AppDomain is different (which makes sense)</p>
  
  <p>Succesfull:</p>
  
  <pre><code>&lt;E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"&gt;
  &lt;System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"&gt;
  &lt;EventID&gt;262163&lt;/EventID&gt;
  &lt;Type&gt;3&lt;/Type&gt;
  &lt;SubType Name="Information"&gt;0&lt;/SubType&gt;
  &lt;Level&gt;8&lt;/Level&gt;
  &lt;TimeCreated SystemTime="2011-09-06T10:04:03.6960710Z" /&gt;
  &lt;Source Name="System.ServiceModel" /&gt;
  &lt;Correlation ActivityID="{1a2bd6e0-c785-468b-95ea-d8b464abec94}" /&gt;
  &lt;Execution ProcessName="WebDev.WebServer40" ProcessID="2792" ThreadID="31" /&gt;
  &lt;Channel /&gt;
  &lt;Computer&gt;PC-FOLKERT&lt;/Computer&gt;
  &lt;/System&gt;
  &lt;ApplicationData&gt;
  &lt;TraceData&gt;
  &lt;DataItem&gt;
  &lt;TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Information"&gt;
  &lt;TraceIdentifier&gt;http://msdn.microsoft.com/nl-NL/library/System.ServiceModel.Channels.MessageReceived.aspx&lt;/TraceIdentifier&gt;
  &lt;Description&gt;Received a message over a channel.&lt;/Description&gt;
  &lt;AppDomain&gt;f67db61a-2-129597770339060921&lt;/AppDomain&gt;
  &lt;Source&gt;System.ServiceModel.Activation.HostedHttpContext+HostedHttpInput/64865147&lt;/Source&gt;
  &lt;ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/MessageTransmitTraceRecord"&gt;
  &lt;MessageProperties&gt;
  &lt;Encoder&gt;application/soap+xml; charset=utf-8&lt;/Encoder&gt;
  &lt;AllowOutputBatching&gt;False&lt;/AllowOutputBatching&gt;
  &lt;Via&gt;http://localhost:52744/Checks.svc&lt;/Via&gt;
  &lt;/MessageProperties&gt;
  &lt;MessageHeaders&gt;
  &lt;a:Action s:mustUnderstand="1" u:Id="_4" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT&lt;/a:Action&gt;
  &lt;a:MessageID u:Id="_5" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;urn:uuid:7117ff27-a64b-4b86-9f80-127225fd3e44&lt;/a:MessageID&gt;
  &lt;ActivityId CorrelationId="4878f073-6eed-4f48-a8a1-bc792112cfd8" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics"&gt;00000000-0000-0000-0000-000000000000&lt;/ActivityId&gt;
  &lt;a:ReplyTo u:Id="_6" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;
  &lt;a:Address&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/a:Address&gt;
  &lt;/a:ReplyTo&gt;
  &lt;a:To s:mustUnderstand="1" u:Id="_7" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;http://localhost:52744/Checks.svc&lt;/a:To&gt;
  &lt;o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:s="http://www.w3.org/2003/05/soap-envelope"&gt;
  &lt;u:Timestamp u:Id="uuid-54189139-4404-4f93-a197-4438ab5f3fde-5" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;u:Created&gt;2011-09-06T10:04:03.580Z&lt;/u:Created&gt;
  &lt;u:Expires&gt;2011-09-06T10:09:03.580Z&lt;/u:Expires&gt;
  &lt;/u:Timestamp&gt;
  &lt;c:SecurityContextToken u:Id="uuid-c4807903-c4a0-4ef0-9712-bd05f8788780-1" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;c:Identifier&gt;urn:uuid:e3f5c663-9b49-45b6-8774-5292da16ca2e&lt;/c:Identifier&gt;
  &lt;/c:SecurityContextToken&gt;
  &lt;c:DerivedKeyToken u:Id="_0" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;o:SecurityTokenReference&gt;
  &lt;o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct" URI="#uuid-c4807903-c4a0-4ef0-9712-bd05f8788780-1"&gt;&lt;/o:Reference&gt;
  &lt;/o:SecurityTokenReference&gt;
  &lt;c:Offset&gt;0&lt;/c:Offset&gt;
  &lt;c:Length&gt;24&lt;/c:Length&gt;
  &lt;c:Nonce&gt;
  &lt;!-- Removed--&gt;
  &lt;/c:Nonce&gt;
  &lt;/c:DerivedKeyToken&gt;
  &lt;c:DerivedKeyToken u:Id="_1" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;o:SecurityTokenReference&gt;
  &lt;o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct" URI="#uuid-c4807903-c4a0-4ef0-9712-bd05f8788780-1"&gt;&lt;/o:Reference&gt;
  &lt;/o:SecurityTokenReference&gt;
  &lt;c:Nonce&gt;
  &lt;!-- Removed--&gt;
  &lt;/c:Nonce&gt;
  &lt;/c:DerivedKeyToken&gt;
  &lt;e:ReferenceList xmlns:e="http://www.w3.org/2001/04/xmlenc#"&gt;
  &lt;e:DataReference URI="#_3"&gt;&lt;/e:DataReference&gt;
  &lt;e:DataReference URI="#_8"&gt;&lt;/e:DataReference&gt;
  &lt;e:DataReference URI="#_9"&gt;&lt;/e:DataReference&gt;
  &lt;/e:ReferenceList&gt;
  &lt;e:EncryptedData Id="_9" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:e="http://www.w3.org/2001/04/xmlenc#"&gt;
  &lt;e:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"&gt;&lt;/e:EncryptionMethod&gt;
  &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;o:SecurityTokenReference&gt;
  &lt;o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/dk" URI="#_1"&gt;&lt;/o:Reference&gt;
  &lt;/o:SecurityTokenReference&gt;
  &lt;/KeyInfo&gt;
  &lt;e:CipherData&gt;
  &lt;e:CipherValue&gt;T9HGceq5Weq5n5Cygk/YzOb9JRFrJVGLdgB+Bf2cDcwue6/Wf5HUg0Krl35/e05wtuwTwNNCH4Q9a8e8+J9+L68tYVijYKwlxJZBIEHLx2XCCKqbve6DWc3VYmaX8mNqDXtKC8cfAtW1O5oH8m/6lCnuN+sZoQDgYh97S5f7AusJdT+eTb9OFarhH5HwiupUjERpnYWAXWoSUgjjCKxIp0iD+MpRGCGA2/7xt+WvfDgX2B/c1DvzuWwx+Kwv7HiXeHS6ZVfnTTYZO3e4GTq7TDYtMThLvw3hGOkK5nb/IDOlGLqWEBk4tzdKgIn7FGssOdhohXyYIAj7x3wzyEirg+HRLg7OO/rtrG0jw/jLdIzs627Hypdbrm9mckAdtxFbh/5p3/CYmGuTr/2ck4EW/a5AM8nkn6J1QT4Cp14Ckr4ZjbvivMKAwGtTcmaJQm6h053b6KOW2lGxO3z+kOjYrE94K993hLvjFfK99LRM1yyApCQyRNMEaKJWNaONmpfdSEAcfrpx+bp0+Fohm1D+8AyYL0m4+tSign7btWZFwU5y8P7ggVQuGrJ0ew0EpDscurFL9FOfZf4H6+qidH305o4CkY0BZanwb6kDhLzxA/0=&lt;/e:CipherValue&gt;
  &lt;/e:CipherData&gt;
  &lt;/e:EncryptedData&gt;
  &lt;e:EncryptedData Id="_8" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:e="http://www.w3.org/2001/04/xmlenc#"&gt;
  &lt;e:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"&gt;&lt;/e:EncryptionMethod&gt;
  &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;o:SecurityTokenReference&gt;
  &lt;o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/dk" URI="#_1"&gt;&lt;/o:Reference&gt;
  &lt;/o:SecurityTokenReference&gt;
  &lt;/KeyInfo&gt;
  &lt;e:CipherData&gt;
  &lt;e:CipherValue&gt;Nni+QmkTzz7sQ56j3vkzS9v19wYLTCtqQrAMOk07fzCCYG31rUfGKzH9bBF8Fmjc/cdmeNRa7YonvNRusaDzPaZgyzWQharZh6uf4EqgwizId8Xk67e1SIVHqSfb8KXtijivi0z94B+cp21wRNomV4h4EEFNJvTlLzNen3GKXwz87cDYUdDhNTEvQOFLU8a1gd2L06WoQ3IaUngpRI3ffg5WKPKZ5b2O+zIK+jy0ol0MqkyO2c43XzwQLBpJEY489pmUazdSERd6nmndV7FtZfE87ECCApcaNxfAxCHwCndkhQBK6bVA+imO67lA1nuXNL41P3meUH78HX7vSw6ujXxKOoJoqd339G5CDXqvXxGz/UkoOCLWl5j17RqxTAp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jrrEwAs3Vk610RlNtddXBNLfQdf21hTWw+b0dyN1WtgZnRKSu6hmmnBkJqCokSN2dA5f97s/pZfS4y7tFHN6CUjqf+PCxR1exYBlu1JAnq3K4zQuTgXJGRRpT4hZpj6bAflNvzM086V75YtLst6JyOpFSmPkiyIRk2JT4H7iP/z3m9IHVG23/ny2Ny7mt4kNEMyprv/lA0NW7bPd7ZawE6IYuzxedelsFEAMqOQ5mCJoT/zWfqrdQ6OOj4FHmGENE+GWGelxHPscWG5NYjhjpga/ADHtSDJOiW03UPRvJAdzkFaSFhMSWU8F//2rKpwuLpTLeCmOzCXnQvfkY0z+VRt7fY+MgJ+mgVbtFqr0O4iuTH4ONIGK5Hv0YQXaV5pCZ7dWasXj5sjHZBtIp5XyGK9tbdhaMxR8ah14MU83SiKw1xdA5A/LnmJ6VaOoUBhsjc9kSuRpluO3YBhQgjHW3Ih1drsrn+t/hbz9Ze6mo9wquM1Wndrn1780oEX3jLh5AwYbGSKGpy7Rv9KTXKrjqRD4NHEmNW1uY2sKRyulJImvUWTts5L5fJ7oBWDzjhELJ18cZTgtqH0fxDcqcY&lt;/e:CipherValue&gt;
  &lt;/e:CipherData&gt;
  &lt;/e:EncryptedData&gt;
  &lt;/o:Security&gt;
  &lt;/MessageHeaders&gt;
  &lt;/ExtendedData&gt;
  &lt;/TraceRecord&gt;
  &lt;/DataItem&gt;
  &lt;/TraceData&gt;
  &lt;/ApplicationData&gt;
  &lt;/E2ETraceEvent&gt;
  </code></pre>
  
  <p>Failure:</p>
  
  <pre><code>&lt;E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"&gt;
  &lt;System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"&gt;
  &lt;EventID&gt;262163&lt;/EventID&gt;
  &lt;Type&gt;3&lt;/Type&gt;
  &lt;SubType Name="Information"&gt;0&lt;/SubType&gt;
  &lt;Level&gt;8&lt;/Level&gt;
  &lt;TimeCreated SystemTime="2011-09-06T10:38:36.3276859Z" /&gt;
  &lt;Source Name="System.ServiceModel" /&gt;
  &lt;Correlation ActivityID="{fba8e1c9-a9f9-491e-814a-e1b513188bcc}" /&gt;
  &lt;Execution ProcessName="w3wp" ProcessID="1896" ThreadID="13" /&gt;
  &lt;Channel /&gt;
  &lt;Computer&gt;PC-FOLKERT&lt;/Computer&gt;
  &lt;/System&gt;
  &lt;ApplicationData&gt;
  &lt;TraceData&gt;
  &lt;DataItem&gt;
  &lt;TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Information"&gt;
  &lt;TraceIdentifier&gt;http://msdn.microsoft.com/nl-NL/library/System.ServiceModel.Channels.MessageReceived.aspx&lt;/TraceIdentifier&gt;
  &lt;Description&gt;Received a message over a channel.&lt;/Description&gt;
  &lt;AppDomain&gt;/LM/W3SVC/1/ROOT/CreditExchange.WCF.Services-3-129597790759646859&lt;/AppDomain&gt;
  &lt;Source&gt;System.ServiceModel.Activation.HostedHttpContext+HostedHttpInput/3683710&lt;/Source&gt;
  &lt;ExtendedData xmlns="http://schemas.microsoft.com/2006/08/ServiceModel/MessageTransmitTraceRecord"&gt;
  &lt;MessageProperties&gt;
  &lt;Encoder&gt;application/soap+xml; charset=utf-8&lt;/Encoder&gt;
  &lt;AllowOutputBatching&gt;False&lt;/AllowOutputBatching&gt;
  &lt;Via&gt;http://pc-folkert.domain.local/CreditExchange.WCF.Services/Checks.svc&lt;/Via&gt;
  &lt;/MessageProperties&gt;
  &lt;MessageHeaders&gt;
  &lt;a:Action s:mustUnderstand="1" u:Id="_4" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT&lt;/a:Action&gt;
  &lt;a:MessageID u:Id="_5" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;urn:uuid:3352b0d1-a569-4d59-a377-82730c5d07f2&lt;/a:MessageID&gt;
  &lt;ActivityId CorrelationId="dfd3e02f-53ef-4b33-a5a4-43bb5bf71245" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics"&gt;00000000-0000-0000-0000-000000000000&lt;/ActivityId&gt;
  &lt;a:ReplyTo u:Id="_6" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;
  &lt;a:Address&gt;http://www.w3.org/2005/08/addressing/anonymous&lt;/a:Address&gt;
  &lt;/a:ReplyTo&gt;
  &lt;a:To s:mustUnderstand="1" u:Id="_7" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"&gt;http://localhost/CreditExchange.WCF.Services/Checks.svc&lt;/a:To&gt;
  &lt;o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:s="http://www.w3.org/2003/05/soap-envelope"&gt;
  &lt;u:Timestamp u:Id="uuid-6f05a6c6-cffa-492e-ae65-4e02b33a0ef1-5" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;u:Created&gt;2011-09-06T10:38:36.249Z&lt;/u:Created&gt;
  &lt;u:Expires&gt;2011-09-06T10:43:36.249Z&lt;/u:Expires&gt;
  &lt;/u:Timestamp&gt;
  &lt;c:SecurityContextToken u:Id="uuid-63efd986-fc21-47db-84eb-735045c57539-2" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;c:Identifier&gt;urn:uuid:67a5014b-b3e0-4f91-a730-60a2a36d3cbe&lt;/c:Identifier&gt;
  &lt;/c:SecurityContextToken&gt;
  &lt;c:DerivedKeyToken u:Id="_0" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;o:SecurityTokenReference&gt;
  &lt;o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct" URI="#uuid-63efd986-fc21-47db-84eb-735045c57539-2"&gt;&lt;/o:Reference&gt;
  &lt;/o:SecurityTokenReference&gt;
  &lt;c:Offset&gt;0&lt;/c:Offset&gt;
  &lt;c:Length&gt;24&lt;/c:Length&gt;
  &lt;c:Nonce&gt;
  &lt;!-- Removed--&gt;
  &lt;/c:Nonce&gt;
  &lt;/c:DerivedKeyToken&gt;
  &lt;c:DerivedKeyToken u:Id="_1" xmlns:c="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"&gt;
  &lt;o:SecurityTokenReference&gt;
  &lt;o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/sct" URI="#uuid-63efd986-fc21-47db-84eb-735045c57539-2"&gt;&lt;/o:Reference&gt;
  &lt;/o:SecurityTokenReference&gt;
  &lt;c:Nonce&gt;
  &lt;!-- Removed--&gt;
  &lt;/c:Nonce&gt;
  &lt;/c:DerivedKeyToken&gt;
  &lt;e:ReferenceList xmlns:e="http://www.w3.org/2001/04/xmlenc#"&gt;
  &lt;e:DataReference URI="#_3"&gt;&lt;/e:DataReference&gt;
  &lt;e:DataReference URI="#_8"&gt;&lt;/e:DataReference&gt;
  &lt;e:DataReference URI="#_9"&gt;&lt;/e:DataReference&gt;
  &lt;/e:ReferenceList&gt;
  &lt;e:EncryptedData Id="_9" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:e="http://www.w3.org/2001/04/xmlenc#"&gt;
  &lt;e:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"&gt;&lt;/e:EncryptionMethod&gt;
  &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;o:SecurityTokenReference&gt;
  &lt;o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/dk" URI="#_1"&gt;&lt;/o:Reference&gt;
  &lt;/o:SecurityTokenReference&gt;
  &lt;/KeyInfo&gt;
  &lt;e:CipherData&gt;
  &lt;e:CipherValue&gt;HS9eENPLD7iILYw/0a8IVNQZ/Q30RxnLDPUTTSW1C33ZYnyLG6+c6mzT5T4eooh9Fn5YatOacyM/y33rHkf3S+kmbQ5PMTQ7KIQZQMO/6YfQ4hQI+a5WrTmPIHuYLaSDHB6M4lVOyzJbP4JDSrg8hVTWPBHOo1pQ8MP5MbsScvhYk+UofBqMo2WdyZL3JIxiAXvnbkcab3dnKl2AFqpBnImCAORb2zFP5rNB78epggMa03Uj2vYxJZbLVaDFh/kTuc7Ud9tx5xtLSoyJiBU4AlwqNbI4gKR8+BvbEPnVc9NKTQa98mi10Goyb/oxGPJadVLHS3L8zuH4TH/v0T0gxI8JGR+Ng7JMHADlLGh2W31S8k0UznwrJ2l0DFC86LUMno1k7/EJrXNJuu/GuJjPaspjTM0O1nEvAKmvHAgyt0JAD2NV0W7GnU4/G8JkH5/P8YYHEBy0lsDo+6ejoZ5upYChI5Y1ZsGHa0eLNvP7jYMKTFraF1LLe3quMFQXG7rOWovaXvUleHbzfEqR90GBTATzwpr2WaXJYgiZ8CWu3KJYcR/G6O8EFPsDveVYUHJ+yI2IbecH6uHnABbNWDua5VYJC4jPdJtuEHjA/+iwjKI=&lt;/e:CipherValue&gt;
  &lt;/e:CipherData&gt;
  &lt;/e:EncryptedData&gt;
  &lt;e:EncryptedData Id="_8" Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns:e="http://www.w3.org/2001/04/xmlenc#"&gt;
  &lt;e:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"&gt;&lt;/e:EncryptionMethod&gt;
  &lt;KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;o:SecurityTokenReference&gt;
  &lt;o:Reference ValueType="http://schemas.xmlsoap.org/ws/2005/02/sc/dk" URI="#_1"&gt;&lt;/o:Reference&gt;
  &lt;/o:SecurityTokenReference&gt;
  &lt;/KeyInfo&gt;
  &lt;e:CipherData&gt;
  &lt;e:CipherValue&gt;WT8Qk0NYcBfVQPDfAdpdTXGdDKI3WtnfpkbeBxmFLVeyUsbvi3VCF95bLO2gx+vm+2VukWEWcJ5XA3zuVqyRQP3fNq4PK5sA8MMnqKtm762Z7SB0MjbS1bp5yaJEA+h/3cUwpIqnms2Unf5AbfMBQmp9mrHpcA/FqCs6gV2phu4AzSgzkDbmm9vtNllq+XjDDDQ7AO7BxOzfeH0Wjb5E4TBykaZ4G/RXpxQqxRRZR3uUtYKw+Nr85fe2ejfzXrhHDYDNarU/J6l2iJBGkN8ACHgaECP/5GLGF2J47uo/Y58omJF6Icy5MFDCvNgsugKEx7eGHoiHk/ZNJE71icqjDxHFqyGdBBHH/IGOpE8nnAbPXD6XZz88WqVisc2CtDIRlAF3T5q9gRRcJohlYigvzKf3LnUHR8jnOcgvIyxQDJ9U/LkRv0hfK90oZZFKkMgzoCMwlRUB1GlSpYCL++Kn4PYpoPFUYS3gWVSkg/qbRbW4BgONgRbL54sx5qavMUVloOBTX4E7SH+k2US8OaHPcpCXhbPHt8bxC5DbiGs6LWxdte+ZuDnnctL3bj7odNObt1gsPDDKD42LPvWc3Yyp9lUUyf/cA58A5MPkJqcRejt0eA87XlAbKbiVfa21Wl60IHjUWVUqbae8b/lf0Yi0VXqAnbtAkvF9Xwu6YPtAl755VKLL72KnoaDlnxIiag5eQbB0Z+JdOvz6gmps1FCmEk5q8xGvaDWVUGfN837sA2Uiao18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/myhc13aaPCBNwmsli2ZqVKnl6r4ZSLeczHcmwYNjg1roEQU+oMg84es86GoF454tEyBsJiICf9OaRwCqJZgVi/2LncZSlWM/lJ8K8NAD07rMiqZMASpRjP9XABzG1O4Js1GAa4JBVWg7zTJ2qmBzLAG2AS+0h2TJe1TqjVfSffAT5a/XkVjchk9eMVPkGvnPqgDu9ntYteG81poWS65rPB+K4Y3GK&lt;/e:CipherValue&gt;
  &lt;/e:CipherData&gt;
  &lt;/e:EncryptedData&gt;
  &lt;/o:Security&gt;
  &lt;/MessageHeaders&gt;
  &lt;/ExtendedData&gt;
  &lt;/TraceRecord&gt;
  &lt;/DataItem&gt;
  &lt;/TraceData&gt;
  &lt;/ApplicationData&gt;
  &lt;/E2ETraceEvent&gt;
  </code></pre>