Olá pessoal.
Estou tentando adicionar um ServiceReference no meu projeto Silverlight, mas estou recebendo o seguinte erro:
The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'http://localhost:54775/GedLumen/Service/GEDService.svc'.
The content type text/html; charset=iso-8859-1 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly
Quando tiro do web.config as tags referentes a autenticação de usuário, eu consigo adicionar o ServiceReference:
<authentication mode="Forms">
<forms loginUrl="view/Autenticacao.aspx" protection="All" timeout="25" slidingExpiration="true" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
Mas se eu deixo, eu recebo o erro que eu coloquei acima.
Qual é a maneira de adicionar um ServiceReference com autenticação de usuários?
Att.,
Eduardo.