title: WCF call gets "Access is denied" over HTTPS on .NET 4
body: <p>Never had problems before but after upgrading to .NET 4, I am getting "Access is Denied" when trying to invoke a WCF method over HTTPS.  If I use HTTP instead of HTTPS, everything works fine.  Any possible solutions for this?  I can provide more specific information if requested.</p>
  
  <p>web.config</p>
  
  <pre><code>    &lt;system.serviceModel&gt;
              &lt;behaviors&gt;
                &lt;serviceBehaviors&gt;
                  &lt;behavior name="some_product.SomeServiceAspNetAjaxBehavior"&gt;
                    &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
                  &lt;/behavior&gt;
                &lt;/serviceBehaviors&gt;
                &lt;endpointBehaviors&gt;
                  &lt;behavior name="some_product.SomeServiceAspNetAjaxBehavior"&gt;
                    &lt;enableWebScript /&gt;
                  &lt;/behavior&gt;
                &lt;/endpointBehaviors&gt;
              &lt;/behaviors&gt;
              &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"/&gt;
              &lt;services&gt;
                &lt;service name="some_product.SomeService"&gt;
                  &lt;endpoint address="" behaviorConfiguration="some_product.SomeServiceAspNetAjaxBehavior" bindingConfiguration="BasicHttpBinding_SomeService" binding="webHttpBinding" contract="some_product.SomeService"/&gt;
                &lt;/service&gt;
              &lt;/services&gt;
              &lt;bindings&gt;
                &lt;basicHttpBinding&gt;        
  &lt;binding name="BasicHttpsBinding_SomeService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="true" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"&gt;
         &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" 
                       maxArrayLength="16384" maxBytesPerRead="4096" 
                       maxNameTableCharCount="16384"/&gt;
         &lt;security mode="Transport"&gt;
            &lt;transport clientCredentialType="Windows" 
                       proxyCredentialType="None" realm=""/&gt;
          &lt;/security&gt;
       &lt;/binding&gt;
                  &lt;binding name="BasicHttpBinding_SomeService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="true" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"&gt;
                    &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/&gt;
                    &lt;security mode="None"&gt;
                      &lt;transport clientCredentialType="None" proxyCredentialType="None" realm=""/&gt;
                      &lt;message clientCredentialType="UserName" algorithmSuite="Default"/&gt;
                    &lt;/security&gt;
                  &lt;/binding&gt;
                &lt;/basicHttpBinding&gt;
                &lt;webHttpBinding&gt;
                  &lt;binding name="BasicHttpBinding_SomeService" maxReceivedMessageSize="300000" allowCookies="true"  &gt;
                    &lt;readerQuotas maxStringContentLength="300000" /&gt;
                  &lt;/binding&gt;
                &lt;/webHttpBinding&gt;
              &lt;/bindings&gt;
              &lt;client&gt;
                &lt;endpoint address="/someurl/SomeService.svc" binding="webHttpBinding" bindingConfiguration="BasicHttpBinding_SomeService" contract="some_product.SomeService" name="BasicHttpBinding_SomeService"/&gt;
  &lt;endpoint address="/someurl/SomeService.svc" binding="webHttpBinding" bindingConfiguration="BasicHttpsBinding_SomeService" contract="some_product.SomeService" name="BasicHttpsBinding_SomeService"/&gt;
              &lt;/client&gt;
            &lt;/system.serviceModel&gt;
  </code></pre>
  
  <p>Note:  Works PERFECTLY fine over HTTP.  Problem ONLY exists under HTTPS.</p>