Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/07/2014, 15:13
zar19
 
Fecha de Ingreso: mayo-2013
Ubicación: Cd. de México
Mensajes: 1
Antigüedad: 11 años
Puntos: 0
Pregunta The HTTP request was forbidden with client authentication scheme 'Anonymous'.

Hola, estoy tratando de consumir un servicio web desde una aplicación tipo,
servicio de windows, configurado con la cuenta de Sistema Local.
Al tratar de llamar un método me salta la siguiente excepción:


17:02 System.ServiceModel.Security.MessageSecurityExcept ion: The HTTP request was forbidden with client authentication scheme 'Anonymous'. ---> System.Net.WebException: Error en el servidor remoto: (403) Prohibido.
en System.Net.HttpWebRequest.GetResponse()
en System.ServiceModel.Channels.HttpChannelFactory.Ht tpRequestChannel.HttpChannelRequest.WaitForReply(T imeSpan timeout)
--- Fin del seguimiento de la pila de la excepción interna ---

Server stack trace:
en System.ServiceModel.Channels.HttpChannelUtilities. ValidateAuthentication(HttpWebRequest request, HttpWebResponse response, WebException responseException, HttpChannelFactory factory)
en System.ServiceModel.Channels.HttpChannelUtilities. ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
en System.ServiceModel.Channels.HttpChannelFactory.Ht tpRequestChannel.HttpChannelRequest.WaitForReply(T imeSpan timeout)
en System.ServiceModel.Channels.RequestChannel.Reques t(Message message, TimeSpan timeout)
en System.ServiceModel.Dispatcher.RequestChannelBinde r.Request(Message message, TimeSpan timeout)
en System.ServiceModel.Channels.ServiceChannel.Call(S tring action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
en System.ServiceModel.Channels.ServiceChannel.Call(S tring action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
en System.ServiceModel.Channels.ServiceChannelProxy.I nvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
en System.ServiceModel.Channels.ServiceChannelProxy.I nvoke(IMessage message)

Exception rethrown at [0]:
en System.Runtime.Remoting.Proxies.RealProxy.HandleRe turnMessage(IMessage reqMsg, IMessage retMsg)
en System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type)

Así tengo configurado el httpbinding.

oEnlace = new System.ServiceModel.BasicHttpBinding();
oEnlace.MaxBufferSize = 2147483647;
oEnlace.MaxReceivedMessageSize = 2147483647;
oEnlace.ReaderQuotas.MaxStringContentLength = 5242880;
oEnlace.TransferMode = System.ServiceModel.TransferMode.Buffered;
oEnlace.SendTimeout = new TimeSpan(0, 10, 0);