title: Why i get this Error : "The issuer of the security token was not recognized by the IssuerNameRegistry"
body: <p>When i want to run my application using a custom STS (I have written it and it works well), firstly i get this Error : </p>
  
  <blockquote>
    <p><em><strong>The issuer of the security token was not recognized by the IssuerNameRegistry</em></strong></p>
  </blockquote>
  
  <p>I tested all the solutions for this error but i still have this error.</p>
  
  <p>I added the "TrustedIssuerNameRegistery" class and set it in web.config.</p>
  
  <pre><code>public class TrustedIssuerNameRegistery : IssuerNameRegistry
  {
      string issuerName = string.Empty;
      public override string GetIssuerName(SecurityToken securityToken)
      {
          if (securityToken != null)
          {
              X509SecurityToken x509Cert = securityToken as X509SecurityToken;
              if (x509Cert != null &amp;&amp; x509Cert.Certificate.SubjectName.Name == "CN=busta-ip1sts.com")
              {
                  issuerName = x509Cert.Certificate.SubjectName.Name;
              }
          }
          if (string.IsNullOrEmpty(issuerName))
          {
              throw new SecurityTokenException("Untrusted issuer.");
          }
  
          return issuerName;
      }
  
      public override string GetIssuerName(System.IdentityModel.Tokens.SecurityToken securityToken, string requestedIssuerName)
      {
          return base.GetIssuerName(securityToken, requestedIssuerName);
      }
  }
  </code></pre>
  
  <p>this is the web.config setting : </p>
  
  <pre><code>&lt;issuerNameRegistry type='Webapp1.TrustedIssuerNameRegistry' /&gt;
  </code></pre>
  
  <p>Then i get this Error : </p>
  
  <pre><code>***ID8030: The value of the 'type' property could not be parsed.Verify that the type attribute of '&lt;issuerNameRegistry type="Webapp1.TrustedIssuerNameRegistry,webapp1"&gt;***
  </code></pre>
  
  <p>I even installed the <strong>"ValidatingIssuerNameRegistry"</strong> dll and registered it in web.config but i get the first error again.</p>
  
  <p>Why i frequently get this error? What is wrong with it? What more can i do?
  If you want , i can give you my source code too. </p>