hi Ethan,
I’ve updated with the latest packages. I’ve added the Drawing/Drawn exceptions events to my LayerOverlay and now I’m getting the exceptions triggered as well as seeing the message on the map stating ‘the operation has timed out’. The timers I have in SendingWebRequest & SentWebRequest are now working properly and set IsVisible=false on the layer.
Couple things…
When running my client in debug mode invoking Open() on a WmsRasterLayer results in the following exception being returned:
Expected DTD markup was not found. Line 1, Position3.
Below is the exception information. I’m curious why the following value is the SourceUrl?
**http://schemas.opengeospatial.net//wms/1.1.1/capabilities_1_1_1.dtd**
This is not attempting to access the Internet is it? My production environment does not have Internet access.
I am able to GetCapabilities just fine. Just the Open on a WmsRasterLayer results in this exception.
I believe my GetCapabilities works because I’m using a TiledWmsLayer for that. I noticed that there was not a new package for TiledWmsLayer.
This happens on my development machine where the WMS client and server are both running and has nothing to do with whether the network is disabled or not.
I confirmed that this is a newly introduced problem by going back to the prior set of packages. The prior set of packages works in Debug Mode.
Outside of Debug Mode everything works fine.
When I request GetCapabilities by entering the URL in a web browser for my WMS server I get the following returned. I’m only showing you the first few lines as the rest I don’t want to make public. As you can see it has DOCTYPE.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://schemas.opengeospatial.net//wms/1.1.1/capabilities_1_1_1.dtd">
<!-- end of DOCTYPE declaration -->
<WMT_MS_Capabilities version="1.1.1">
<!-- Service Metadata -->
<Service>
<!-- The WMT-defined name for this type of service -->
<Name>OGC:WMS</Name>
Your thoughts?
Thanks,
Dennis
Message = “Expected DTD markup was not found. Line 1, position 3.”
Source = System.Xml
SourceUri = http://schemas.opengeospatial.net//wms/1.1.1/capabilities_1_1_1.dtd
ex.StackTrace
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception e)
at System.Xml.DtdParser.Throw(Int32 curPos, String res, String arg)
at System.Xml.DtdParser.ScanSubsetContent()
at System.Xml.DtdParser.GetToken(Boolean needWhiteSpace)
at System.Xml.DtdParser.ParseSubset()
at System.Xml.DtdParser.ParseExternalSubset()
at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
at System.Xml.DtdParser.System.Xml.IDtdParser.ParseInternalDtd(IDtdParserAdapter adapter, Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.ParseDtd()
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(Stream inStream)
at fSQ=.GCU=.Load(Stream inputStream)
at ThinkGeo.MapSuite.Layers.WmsRasterSource.gBo=(String requestCapabilities, IWebProxy proxy, ICredentials credentials)
at ThinkGeo.MapSuite.Layers.WmsRasterSource.fxo=(String url)
at ThinkGeo.MapSuite.Layers.WmsRasterSource.OpenCore()
at ThinkGeo.MapSuite.Layers.RasterSource.Open()
at ThinkGeo.MapSuite.Layers.RasterLayer.OpenCore()
at ThinkGeo.MapSuite.Layers.Layer.Open()
at OriStarWmsClient.TheWmsProviderOriStar.LoadLayer(String TheProvider) in C:\OriStarMappingIncMapSuiteV10Secondary\OriStarWmsClient\TheWmsProviderOriStar.cs:line 186
Source = System.Xml
SourceUri = http://schemas.opengeospatial.net//wms/1.1.1/capabilities_1_1_1.dtd