This project has moved and is read-only. For the latest updates, please go here.

SharpMap behind a proxy - error

Apr 14, 2008 at 8:17 AM
Hi there,

I have the following problem:
My webserver is behind a webproxy, so I must set the layer.Proxy for an WMS-Layer.

System.Net.WebProxy proxyObject = new System.Net.WebProxy("", 80);
layWms.Proxy = proxyObject;

Executing the script returns this error:

WebException: Der Remoteserver hat einen Fehler zurückgegeben: (411) Länge erforderlich.
System.Net.HttpWebRequest.GetResponse() +944
SharpMap.Layers.WmsLayer.Render(Graphics g, Map map) in C:\SharpMap-32732\Branches\0.9.5\SharpMap\Layers\WmsLayer.cs:384

How can I solve this error?