Note that there are some explanatory texts on larger screens.

plurals
  1. POWindows WCF client with internet proxy server showing error The server committed a protocol violation. Section=ResponseStatusLine
    text
    copied!<p>Our team trying to create a windows application(c#) to call a WCF service using internet proxy server</p> <p>Showing exception "The server committed a protocol violation. Section=ResponseStatusLine" while calling WCF service</p> <p>Please give suggestion to solve this problem/any other alternative solution</p> <pre><code>//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"; } </code></pre> <p>Server stack trace: </p> <blockquote> <p>at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)<br> at ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)<br> at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)<br> at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)<br> at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)<br> at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)<br> at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)<br> at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)</p> <p>Exception rethrown at [0]:<br> at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)<br> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)<br> at DevicesService.IDevicesService.CheckNetworkConnection(String ipAddress)</p> </blockquote> <p>My client side code in app.config <img src="https://i.stack.imgur.com/Fwr1q.jpg" alt="alt text"></p> <p>My server side code in web.config <img src="https://i.stack.imgur.com/o5rz3.jpg" alt="alt text"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload