title: SL4/WCF not working with HTTPS
body: <p>I need help trying to get an SL4/WCF app using https on a production server.  The app works perfect using http, and with https it’ll load the xap and display the login page, but I get a generic error when trying to authenticate or make wcf calls:</p>
  
  <p>“An exception occurred during the operation, making the result invalid.  Check InnerException for exception details.”</p>
  
  <p>“[Async_ExceptionOccurred]
  Arguments: 
  Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See <a href="http://go.microsoft.com/fwlink/?linkid=106663&amp;Version=4.0.60310.0&amp;File=System.dll&amp;Key=Async_ExceptionOccurred" rel="nofollow">http://go.microsoft.com/fwlink/?linkid=106663&amp;Version=4.0.60310.0&amp;File=System.dll&amp;Key=Async_ExceptionOccurred</a>”</p>
  
  <p>The environment is SL4 - MVVM, IIS7, Basic WCF, Silverlight fault behavior class, and authentication using the Asp.net membership provider.  The website and services are located in the same directory, so I don’t think there’s a crossdomain issue – the site does work using http and fiddler doesn’t show a missing clientaccesspolicy.xml file – although I have that file installed anyways.  Fiddler doesn’t provide any clues or traffic after the xap has loaded.  I can also browse to and access the service directly while using https.</p>
  
  <p>Any help or suggestions would be appreciated.
  Thanks,
  Max.</p>
  
  <p>Here’s the web.config:</p>
  
  <p>
      
        
          
              
          
              
          
        
        
          
          
              
          
        
        
      </p>
  
  <pre><code>&lt;extensions&gt;
    &lt;behaviorExtensions&gt;
      &lt;add name="silverlightFaults" type="Accruit.RidgeLine.Behaviors.SilverlightFaultBehavior, Accruit.RidgeLine.Behaviors, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /&gt;
    &lt;/behaviorExtensions&gt;
  &lt;/extensions&gt;
  
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior name="silverlightBehavior"&gt;
        &lt;serviceMetadata httpsGetEnabled="true" /&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="true" httpsHelpPageEnabled="true" /&gt;
      &lt;/behavior&gt;
      &lt;behavior name=""&gt;
        &lt;serviceMetadata httpsGetEnabled="true" /&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="false" httpsHelpPageEnabled="true" /&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  
    &lt;endpointBehaviors&gt;
      &lt;behavior name="SilverlightFaultBehavior"&gt;
        &lt;silverlightFaults /&gt;
      &lt;/behavior&gt;
    &lt;/endpointBehaviors&gt;
  &lt;/behaviors&gt;
  
  &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /&gt;
  
  &lt;services&gt;
    &lt;service name="Accruit.RidgeLine.Web.BankingService" behaviorConfiguration="silverlightBehavior" &gt;
      &lt;!-- Endpoint for Standard SOAP clients --&gt;
      &lt;endpoint address="" contract="Accruit.RidgeLine.Web.IBankingService"  
                binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_IBankingService"/&gt;
      &lt;!-- Endpoint for Silverlight clients --&gt;
      &lt;endpoint address="SilverlightEndPoint" contract="Accruit.RidgeLine.Web.IBankingService"
                binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_IBankingService_SilverlightEndPoint" 
                behaviorConfiguration="SilverlightFaultBehavior" /&gt;
      &lt;endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  
  
  &lt;client&gt;
    &lt;endpoint address="https://domainname.com/BankingService.svc"
        binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_IBankingService"
        contract="BankingService.IBankingService" name="BasicHttpBinding_IBankingService" /&gt;
  
    &lt;endpoint address="https://domainname.com/BankingService.svc/SilverlightEndPoint"
        binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_IBankingService"
        contract="BankingService.IBankingService" name="basicHttpBinding_IBankingService_SilverlightEndPoint" /&gt;
  &lt;/client&gt;
  </code></pre>
  
  <p></p>