Windows WCF-client mit internet-proxy-server mit der Fehlermeldung Der server verpflichtet, eine Protokollverletzung. Abschnitt=ResponseStatusLine

Unser team versuchen, um eine windows-Anwendung(c#), um einen WCF-Dienst mit internet-proxy-server

Zeigen Ausnahme "Der server verpflichtet, eine Protokollverletzung. Abschnitt=ResponseStatusLine" beim Aufruf von WCF-service -

Bitte geben Sie Vorschlag, um dieses problem zu lösen/zu jeder anderen alternative Lösung

//Code for creating proxy
public static DevicesServiceClient CreateProxy()
{
  var proxy = new DevicesServiceClient("BasicHttpBinding_IDevicesService");

  BasicHttpBinding binding = new BasicHttpBinding();
  binding.Security.Mode = BasicHttpSecurityMode.None;
  binding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
  binding.UseDefaultWebProxy = false;
  binding.ProxyAddress = new Uri(string.Format("http://{0}:{1}", "192.168.0.20","808"));
  proxy.Endpoint.Binding = binding;

  proxy.ClientCredentials.UserName.UserName = "Username";
  proxy.ClientCredentials.UserName.Password = "Password";
}

Server stack-trace:

System.ServiceModel.- Kanäle.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)

bei ServiceModel.- Kanäle.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

System.ServiceModel.- Kanäle.RequestChannel.Request(Message message, TimeSpan timeout)

System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)

System.ServiceModel.- Kanäle.ServiceChannel.Call(String Aktion, Boolean oneway,
ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)

System.ServiceModel.- Kanäle.ServiceChannel.Call(String Aktion, Boolean oneway,
ProxyOperationRuntime operation, Object[] ins, Object[] outs)

System.ServiceModel.- Kanäle.ServiceChannelProxy.InvokeService(IMethodCallMessage
methodCall, ProxyOperationRuntime Betrieb)

System.ServiceModel.- Kanäle.ServiceChannelProxy.Invoke(IMessage message)

Ausnahme erneut ausgelöst, auf [0]:

System.- Laufzeit.Remoting.Proxys.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

System.- Laufzeit.Remoting.Proxys.RealProxy.PrivateInvoke(MessageData&
msgData, Int32-Typ)

bei DevicesService.IDevicesService.CheckNetworkConnection(String ipAddress)

Mein client side code in der app.config
Windows WCF-client mit internet-proxy-server mit der Fehlermeldung Der server verpflichtet, eine Protokollverletzung. Abschnitt=ResponseStatusLine

Meine server-side-code im Internet.config
Windows WCF-client mit internet-proxy-server mit der Fehlermeldung Der server verpflichtet, eine Protokollverletzung. Abschnitt=ResponseStatusLine

InformationsquelleAutor amexn | 2010-10-01
Schreibe einen Kommentar