title: Get list of X509Certificate from cert store C# MVC
body: <p>I'm trying to get the list of certificates from cert store. This is the code I'm using from this post <a href="https://stackoverflow.com/questions/1205295/get-list-of-certificates-from-the-certificate-store-in-c-sharp">Get list of certificates from the certificate store in C#</a>:</p>
  
  <pre><code>X509Store store = new X509Store(StoreName.My);
  store.Open(OpenFlags.ReadOnly);
  foreach (X509Certificate2 mCert in store.Certificates)
  {
    // TODO
  }
  </code></pre>
  
  <p>When I run this code from Test Explorer is finding all available certificates, but when I run it on my MVC application is not returning any certificate.
  I'm running VS 2013 as administrator.</p>
  
  <p>Could you please address me what I'm doing wrong?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>When I'm running the code on IIS Express I'm getting the list of certificates, but when I run it on Local IIS I'm not getting any results.</p>
  
  <p>Regards,</p>