Deploying WCF service and silverlight in SSL -


i have silverlight application ssl service. if deploy service without ssl works right, if activate ssl , change endpoint http://myservice https://myservice in servicereference.clientconfig, , change in web.config: endpoint "basichttpbinding" "webhttpbinding" service dont work , produce next error:

unhandled error in silverlight application [arg_nullreferenceexception]  arguments: debbuging resource string ar unavalible 

i dont know if wrong or need more... etc. in advance need help.

you can't convert service endpoint webhttpbinding because silverlight supports basichttpbinding. secure services silverlight, need create basichttpbinding transport level security. then, create service behavior specifies httpsgetenabled="true". have included sample below:

service side web.config

<bindings>   <basichttpbinding>     <binding name="securebasichttpbinding" closetimeout="00:01:00"         opentimeout="00:01:00" receivetimeout="00:10:00" sendtimeout="00:01:00"         allowcookies="false" bypassproxyonlocal="false" hostnamecomparisonmode="strongwildcard"         maxbuffersize="65536" maxbufferpoolsize="524288" maxreceivedmessagesize="65536"         messageencoding="text" textencoding="utf-8" transfermode="buffered"         usedefaultwebproxy="true">       <readerquotas maxdepth="32" maxstringcontentlength="8192" maxarraylength="16384"           maxbytesperread="4096" maxnametablecharcount="16384" />       <security mode="transport">         <transport clientcredentialtype="none" proxycredentialtype="none"             realm="" />         <message clientcredentialtype="username" algorithmsuite="default" />       </security>     </binding>   </basichttpbinding> </bindings>  <services>   <service name="myservice" behaviorconfiguration="secureservicebehavior">     <endpoint address="" binding="basichttpbinding" contract="imyservice" bindingconfiguration="securebasichttpbinding" />   </service> </services>  <behaviors>   <servicebehaviors>     <behavior name="secureservicebehavior">       <servicemetadata httpgetenabled="false" httpsgetenabled="true"/>     </behavior>   </servicebehaviors> </behaviors> 

client side

in client config, add same securebasichttpbinding services , add following endpoint attribute:

bindingconfiguration="securebasichttpbinding" 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -