title: Cannot find the X.509 certificate when browsing wcf services in browser
body: <p>I Published a service on IIS 7. I used a self signed certificate named testCertificate. when I browse the service in the browser I get this error:
  Cannot find the X.509 certificate using the following search criteria: StoreName 'Root', StoreLocation 'LocalMachine', FindType 'FindBySubjectName', FindValue 'testCertificate'.
  I used this code in my Web.Config file:</p>
  
  <pre><code>    &lt;serviceCredentials&gt;                        
          &lt;serviceCertificate findValue="testCertificate" storeLocation="LocalMachine" storeName="Root" x509FindType="FindBySubjectName" /&gt;
          &lt;userNameAuthentication userNamePasswordValidationMode="Custom" customUserNamePasswordValidatorType="MyService.Authentication,MyService" /&gt;
      &lt;/serviceCredentials&gt;
  </code></pre>
  
  <p>And another point is when I referesh the browser page I get this error:
  HTTP Error 404.0 - Not Found
  The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
  could any one help me please?</p>