Problemas com Silverlight usando WCF

De Wiki Locaweb
Ir para: navegação, pesquisa

Problemas com Silverlight usando WCF

Esse tutorial destina-se a desenvolvedores que encontram dificuldades para publicar uma aplicação que utiliza Silverlight e consome recursos de webservices onde o seguinte erro é apresentado:

IIS specified authentication schemes 'Basic, Anonymous', but the binding only supports specification of exactly one authentication scheme. Valid authentication schemes are Digest, Negotiate, NTLM, Basic, or Anonymous. Change the IIS settings so that only a single authentication scheme is used.


Para contornar essa situação sugerimos a seguinte alteração no arquivo web.config:


 <system.webServer> 
      <security> 
             <authentication> 
                 <basicAuthentication enabled="false" />
             </authentication> 
      </security> 
 </system.webServer> 

Usamos como base de conhecimento o fórum de discussão a seguir: http://kb.discountasp.net/KB/a803/error-accessing-wcf-service-iis-specified-authentication.aspx

Se mesmo assim o erro persistir sugerimos ainda modificar o atributo "security mode" para "none" conforme descrito abaixo:

 <bindings> 
   <webHttpBinding> 
     <binding> 
       <security mode="None" /> 
     </binding> 
   </webHttpBinding> 
 </bindings>


Links

Ferramentas pessoais
Espaços nominais

Variantes
Ações
Navegação
Ferramentas
Criar um livro