title: ADFS 2.0 Microsoft.IdentityServer.Web.InvalidRequestException: MSIS7042
body: <p>I have a custom MVC site that uses ADFS authentication for users to access the site.</p>
  
  <p>This was working, I have since made no changes, with the only change occurring on the ADFS side with the TOKEN certificates rolling over.  Unfortunately I cannot seem to find anything that indicates that this is related to my now very frustrating error.</p>
  
  <p>Simply put no user can log in, thank goodness this is still under development so at least I do not have screaming users on my hands. I have a Dynamics CRM 2011 environment IFD and Claims-Based auth using this same ADFS server.  I have also removed and recreated the Relying-Party Trusts, but still with no luck.</p>
  
  <p>All I get is the following error on the page with the accompanying Event Log entry:</p>
  
  <blockquote>
    <h3>Site:</h3>
    
    <p>There was a problem accessing the site. Try to browse to the site again.</p>
    
    <h3>Event Log:</h3>
    
    <p>Encountered error during federation passive request. </p>
    
    <p>Additional Data </p>
    
    <p>Exception details: 
    Microsoft.IdentityServer.Web.InvalidRequestException: MSIS7042: The same client browser session has made '6' requests in the last '6' seconds. Contact your administrator for details.
       at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.UpdateLoopDetectionCookie()
       at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SendSignInResponse(MSISSignInResponse response)</p>
  </blockquote>
  
  <p>I have searched high and low, I have tried every suggestion I can find, including this post: <a href="https://stackoverflow.com/questions/2640030/adfs-v2-0-error-msis7042-the-same-client-browser-session-has-made-6-request">ADFS v2.0 Error : MSIS7042: The same client browser session has made &#39;6&#39; requests in the last &#39;1&#39; seconds</a></p>
  
  <p>I have configured my relying party trusts as per the following URL: <a href="http://www.cloudidentity.com/blog/2014/02/12/use-the-on-premises-organizational-authentication-option-adfs-with-asp-net-in-visual-studio-2013" rel="nofollow noreferrer">http://www.cloudidentity.com/blog/2014/02/12/use-the-on-premises-organizational-authentication-option-adfs-with-asp-net-in-visual-studio-2013</a></p>
  
  <p>I forgot to turn off custom errors, so now I get the following:</p>
  
  <blockquote>
    <p>WIF10201: No valid key mapping found for securityToken: 'System.IdentityModel.Tokens.X509SecurityToken' and issuer: '<a href="http://XXX.XXX.XXX/adfs/services/trust" rel="nofollow noreferrer">http://XXX.XXX.XXX/adfs/services/trust</a>'. </p>
  </blockquote>
  
  <p>As such I have corrected the Certificate Thumbprint, but unfortunately that doesn't seems to help the situation.</p>
  
  <p>Still searching and trying solutions for this issue and will update if anything changes.</p>
  
  <p>Any assistance in this regard would be greatly appreciated.</p>
  
  <p>Thanks</p>