Hi,
Some time ago I had some trouble with the Environment Agency WMS feeds that you helped demonstrate was a problem with their side of things (ows undeclared prefix). Now a similar problem seems to have started with the same provider, although the returned error is different. This is the exception I am getting:
System.Net.WebException was caught
HResult=-2146233079
Message=The remote server returned an error: (401) Unauthorized.
Source=System
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at ThinkGeo.MapSuite.Core.WmsRasterSource.SendWebRequestCore(WebRequest webRequest)
at ThinkGeo.MapSuite.Core.WmsRasterSource.SendWebRequest(WebRequest webRequest)
at ThinkGeo.MapSuite.Core.WmsRasterSource.GetImageCore(RectangleShape worldExtent, Int32 canvasWidth, Int32 canvasHeight)
at ThinkGeo.MapSuite.Core.RasterSource.GetImage(RectangleShape worldExtent, Int32 canvasWidth, Int32 canvasHeight)
at ThinkGeo.MapSuite.Core.RasterLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.Overlay.sRM=(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.dhQ=(IEnumerable`1 drawingOverlays, RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.dRQ=(RectangleShape drawingExtent, RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.lRQ=(RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.kxQ=(Int32 delayInterval, RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()
at enzo.MapEditing.cMapNavigation.RefreshMap() in c:\Users\User\Source\Workspaces\Pear Technology\Enzo\enzo\MapEdit\MapNavigation.cs:line 71
InnerException:
.
I have tried using the MapSuite GIS Editor and get a black box where I would expect the data to be, however QGIS seems OK. I have raised the issue with the provider but wondered if you have any thoughts about why I might be getting this error?
The URL can be either of these variants:
geostore.com/OGC/OGCInterface?SERVICE=WMS&INTERFACE=ENVIRONMENT&LC=0
geostore.com/OGC/OGCInterface?SERVICE=WMS&UID=UDATAGOV2011&PASSWORD=datagov2011&INTERFACE=ENVIRONMENT&LC=0
It is OK to omit the LC=0 parameter at the end or alternative we can use LV=<actual value> to pinpoint a specific layer (there are rather a lot).
Quite a lot of functionality does work, such as GetLegendGraphic, GetFeatureInformation (if you know where to click) and GetCapabilities but the map doesn’t draw and we get the exception already mentioned whenever the map is refreshed.
Regards,
Jonathan
WMS Revisted
Hi Jonathan,
I think we can discuss this in your other thread.
And just like Johnny replied, your exception looks like a unauthorized issue.
And I found this server is not stable when test. So I am not sure whether this exception is a really unauthorized exception or just a server exception.
Regards,
Don
OK, happy to discuss under the other thread.
Jonathan
Hi Jonathan,
It looks your currently thread still contains your username and password, please don’t forget comment them.
Next time if you need provide us the account for test, for security reason please sent us email or put them in ticket system.
Regards,
Don