title: Cannot find the X.509 certificate using the following search criteria ----
body: <p>I created custom authentication by Wcf after that I created self-sign ssl in IIS 7.5</p>
  <p>and use below code in web.config</p>
  <pre><code>&lt;serviceCertificate findValue=&quot;CN = srv-erp&quot;/&gt;
  </code></pre>
  <p>and this one too</p>
  <pre><code>&lt;serviceCertificate findValue=&quot;CN = srv-erp&quot;
                                  storeLocation=&quot;LocalMachine&quot;
                                  x509FindType=&quot;FindBySubjectName&quot;
                                  storeName=&quot;My&quot;/&gt;
  </code></pre>
  <p>and I used FindBySerialNumber too.</p>
  <p>but they didn't work and I get this error</p>
  <blockquote>
  <p>Cannot find the X.509 certificate using the following search criteria:
  StoreName 'My', StoreLocation 'LocalMachine', FindType
  'FindBySubjectDistinguishedName', FindValue 'CN = srv-erp'.</p>
  </blockquote>
  <p>Your help is appreciated</p>