title: VisualStudio:Could not create SSL/TLS secure channel
body: <p>I have searched for this alot but couldn't find this specific problem related answer.</p>
  
  <p>I am accessing a web service trough my c# web application. The web service require a certificate in the request to authenticate.</p>
  
  <p>The web application is in development mode and I am using VisualStudio 2013 with iis express.</p>
  
  <p>I have installed the client certificate in the local machine via MMC.
  In the web service request I added the X509Certificate.
  The web server doesn't support SSL but TLS so I am adding the following line as well:</p>
  
  <pre><code>ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
  </code></pre>
  
  <p>I am also adding the following line:</p>
  
  <pre><code>ServicePointManager.ServerCertificateValidationCallback =delegate { return true; };
  </code></pre>
  
  <p>The problem is if I am running the VisualStudio as normal user with iis express i get</p>
  
  <pre><code>"The request was aborted: Could not create SSL/TLS secure channel."
  </code></pre>
  
  <p>But if I run the VisualStudio as administrator with iis express then the connection is successful and the webserver return the desired response.</p>
  
  <p>Then I hosted the application in my local iis with .Net full trust but still got the:</p>
  
  <pre><code>"The request was aborted: Could not create SSL/TLS secure channel."
  </code></pre>
  
  <p>My ip is white listed on the web server.</p>
  
  <p>If someone can help me out to understand why does it work when the VisualStudio is being run as an administrator and why doesn't it work as a normal user ?</p>