Quantcast
Viewing all articles
Browse latest Browse all 764

Silverlight via https

Hi everybody,

   for some time I try to access Data of my Silverlight app via https using my local IIS (Win 8.1) . It was no problem to create a certificate. There is no problem to see my data via http - there must be some quirk in some of the config files...

I was hoping by changing security mode to "Transport" and http to https would do the trick but no success.

Here are my config files (working for http) - Maybe someone can help ?

 

     TIA

         Uwe

 

clientConfig:

<configuration>    <system.serviceModel>        <bindings><basicHttpBinding>         <binding name="BasicHttpBinding_IWcfPortal" maxBufferSize="2147483647"                maxReceivedMessageSize="2147483647">					<security mode="None" /><!--security mode="Transport" /--></binding>        </basicHttpBinding></bindings>        <client><endpoint address="http://localhost/Sl_App_01/WcfPortal.svc" binding="basicHttpBinding"                bindingConfiguration="basicHttpBinding_IWcfPortal" contract="WcfPortal.IWcfPortal"                name="basicHttpBinding_IWcfPortal" /></client>    </system.serviceModel></configuration>

 Web.Config:

<?xml version="1.0" encoding="utf-8"?><configuration>  <connectionStrings>	  <add name="SqlConnStr" connectionString="Data Source=localhost;Initial Catalog=***;Integrated Security= false;User ID=***;Password=***" providerName="System.Data.SqlClient" />  </connectionStrings>  <system.serviceModel>    <behaviors>      <serviceBehaviors>        <behavior name="WcfPortalBehavior">          <serviceMetadata httpGetEnabled="true" />          <serviceDebug includeExceptionDetailInFaults="true" />        </behavior>        <behavior name="">          <serviceMetadata httpGetEnabled="true" />          <serviceDebug includeExceptionDetailInFaults="false" />        </behavior>      </serviceBehaviors></behaviors>    <services>      <service behaviorConfiguration="WcfPortalBehavior" name="Csla.Server.Hosts.Mobile.WcfPortal">		    <endpoint address="" binding="basicHttpBinding" contract="Csla.Server.Hosts.Mobile.IWcfPortal">          <identity>            <dns value="localhost" />          </identity>        </endpoint>        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />      </service>    </services>  <bindings>  <basicHttpBinding>  <binding name="basicHttpBinding_IWcfPortal" maxBufferSize="2147483647"  maxReceivedMessageSize="2147483647">  <security mode="None" >  <!--security mode="Transport" -->  <transport clientCredentialType="None"/>  </security>  </binding>  </basicHttpBinding>  </bindings>  </system.serviceModel>  <system.web>    <compilation debug="true" targetFramework="4.5" />    <authentication mode="Windows" />    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />  </system.web>  <runtime>    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">      <dependentAssembly>        <assemblyIdentity name="Csla" publicKeyToken="93be5fdc093e4c30" culture="neutral" />        <bindingRedirect oldVersion="0.0.0.0-4.5.601.0" newVersion="4.5.601.0" />      </dependentAssembly>    </assemblyBinding>  </runtime></configuration>

Viewing all articles
Browse latest Browse all 764

Trending Articles