IndexOutOfRangeException occurred in WmtsParser Brutile
See original GitHub issue“An exception of type ‘System.IndexOutOfRangeException’ occurred in BruTile.dll but was not handled in user code /Index was outside the bounds of the array.” Exception happens in the following line: var myTileSource = WmtsParser.Parse(stream).First();
System.Net.Http.HttpClient httpClient = new System.Net.Http.HttpClient(); var stream = httpClient.GetStreamAsync("http://10.180.129.89:7080/PBS/rest/services/sat/MapServer/WMTS/1.0.0/WMTSCapabilities.xml").Result; var myTileSource = BruTile.Wmts.WmtsParser.Parse(stream).First();
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
IndexOutOfRangeException Class (System)
The exception that is thrown when an attempt is made to access an element of an array or collection with an index that...
Read more >c# - What is an IndexOutOfRangeException ...
This exception means that you're trying to access a collection item by index, using an invalid index. An index is invalid when it's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Could you attach the content of the xml as file to this issue?
Closing this. I assume there is no BruTile issue underlying this.