POST
|
I had the same exact issue. I deleted the app from my test phone, deleted out bin and obj, found that packages.config still showed 100.0.0 as the version so I manually changed it to 100.1.0, rebuilt the app and then it worked. Thanks for the help Rich.
... View more
09-23-2017
08:47 AM
|
0
|
0
|
807
|
POST
|
This is not a solution...when you remove the MapView from the UI it cannot be re-added. According to this Certified Xamarin Developer at least: Error: Cannot add a null child view to a ViewGroup — Xamarin Forums Did anybody actually get this to work? How? I use the exact code and the MapView cannot be re-added to the grid after it's been removed. Furthermore I tried it in another way. I don't even navigate to another page I just have a button that removes the MapView if it exists in the Grid content, and adds it back if it doesn't exist. It fails everytime with the same error "Cannot add a null child view to a ViewGroup". The object shows it exists in the debugger, but Xamarin says it cannot be added.
... View more
09-07-2017
04:05 PM
|
0
|
1
|
1528
|
POST
|
This works for removing the map, however when I add it back in I get an error "Cannot add a null child to a ViewGroup". Anybody know what may be causing that? The exception is at this line: MapGrid.Children.Add(MyDetailMapView); Whereas MapGrid is a Xamarin Forms Grid which is the Content of my ContentPage, and MyDetailMapView is an ArcGIS MapView. The MapView is not null when I attempt to add, nor is the Grid itself. I copy the code above exactly and just changed RootLayout to my Grid and _mapView to my MapView. Thanks.
... View more
08-28-2017
05:22 PM
|
0
|
0
|
1528
|
POST
|
Edit: I have fixed my issue, turns out our application loads our maps in a couple of different areas and in one of the areas we were setting the SecurityProtocol, but not in the other. I'm having this same issue. Our application is built on .Net 4.5 and I've tried every SecurityProtocol (Tls12, Tls, Tls11, Ssl3), and none of them work. I found online somebody said to true ServicePointManager.Expect100Continue = true; but that doesn't help either. We're using this address: public/NFHLWMS (MapServer) I also tried this one https://hazards.fema.gov/gis/nfhl/services/public/NFHLWMS/MapServer/WMSServer and https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer None of it works. Thanks for any help anybody can provide.
... View more
08-18-2017
07:51 AM
|
0
|
0
|
666
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|