ERRO WS X SILVERLIGHT

ANTONIOBSJ 02/04/2014 16:48:51
#436825
Alguém já viu esse m@ldito erro?

[Ô]An error occurred while trying to make a request to URI [ô]http://****/ServicoAutenticacao.svc[ô]. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details.[Ô]
KERPLUNK 02/04/2014 17:39:25
#436829
Resposta escolhida
Está acontecendo onde e quando?
ANTONIOBSJ 02/04/2014 17:50:08
#436830
Em modo de debug, quando eu tento acessar o WS, que no caso é uma rotina de autenticação.

Esse é meu arquivo ClientAcessPolicy.xml

<?xml version=[Ô]1.0[Ô] encoding=[Ô]utf-8[Ô]?>
<access-policy>
<cross-domain-access>
<policy>
<allow-from http-request-headers=[Ô]SOAPAction[Ô]>
<domain uri=[Ô]*[Ô]/>
</allow-from>
<grant-to>
<resource path=[Ô]/[Ô] include-subpaths=[Ô]true[Ô]/>
</grant-to>
</policy>
</cross-domain-access>
</access-policy>
ANTONIOBSJ 03/04/2014 09:50:52
#436842
O erro ocorre aqui:

public bool EndAuthenticationMethod(System.IAsyncResult result) {
object[] _args = new object[0];
bool _result = ((bool)(base.EndInvoke([Ô]AuthenticationMethod[Ô], _args, result)));
return _result;
}
ANTONIOBSJ 03/04/2014 09:53:45
#436843
Dispara esse erro:

{System.ServiceModel.CommunicationException: An error occurred while trying to make a request to URI [ô]http://dev.sigecom.ecomenergia.local/webservices/ServicoAutenticacao.svc[ô]. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details. ---> System.Security.SecurityException ---> System.Security.SecurityException: Security error.
em System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
em System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClassa.<EndGetResponse>b__9(Object sendState)
em System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__0(Object sendState)
--- Fim do rastreamento de pilha de exceções internas ---
em System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
em System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
em System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
--- Fim do rastreamento de pilha de exceções internas ---
em System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
em System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
em System.ServiceModel.ClientBase'1.ChannelBase'1.EndInvoke(String methodName, Object[] args, IAsyncResult result)
em SIGEcom.ServicoAutenticacao.ServicoAutenticacaoClient.ServicoAutenticacaoClientChannel.EndAuthenticationMethod(IAsyncResult result)
em SIGEcom.ServicoAutenticacao.ServicoAutenticacaoClient.SIGEcom.ServicoAutenticacao.ServicoAutenticacao.EndAuthenticationMethod(IAsyncResult result)
em SIGEcom.ServicoAutenticacao.ServicoAutenticacaoClient.OnEndAuthenticationMethod(IAsyncResult result)
m System.ServiceModel.ClientBase'1.OnAsyncCallCompleted(IAsyncResult result)}
Tópico encerrado , respostas não são mais permitidas