Add new layer to map service, don't want to have to reconfigure whole site over again
I am trying to change a map service (add layers, tables, change schema, etc.) and not have to reconfigure the entire Geocortex site after a change to my map service. I am using ArcGIS Server 10.1, Essentials 4.5.
When I initialize the Site with the changed Map Service in Essential Manager, I get no initial errors. But when I try to add a newly added layer from the map service (a layer that exists in the map service--in other words, Essentials "sees" this layer as being part of the map service but it is not currently configured in the site) to the table-of-contents in the Site and apply the change, it gives the following error: "Object reference not set to an instance of an object."

Here is what the Stack Trace records:
at Geocortex.Essentials.RestManager.Controllers.MapController.a(JsonLayerListItem A_0, SiteConfig A_1, IDictionary`2 A_2)
at Geocortex.Essentials.RestManager.Controllers.MapController.a(JsonLayerListItem A_0, SiteConfig A_1, IDictionary`2 A_2)
at Geocortex.Essentials.RestManager.Controllers.MapController.SaveLayerList(IList`1 jsonLayerList, SiteConfig siteConfig)
at Geocortex.Essentials.RestManager.Controllers.MapController.EditServices(FormCollection collection)
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
at System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
I don't want to have to reconfigure the entire site just because I add a new layer to the "main" map service, but, right now, this seems to be the only thing I can do. Any idea how to fix/get around this error?
Thanks beforehand for any help,
Michael
0
-
I've never had any issues with this. Usually, I just add the layer to the service, then I have to go into the Service in the Geocortex Rest Manager and add the layer under the "Add/Remove Layers" tab if it hasn't already added it. 0 -
Hi Michael,
There are a couple of things you can try:
1) Add the service as a standalone error to a new site. Do you see the same errors?
2) Try clearing your site cache (by hitting the green refresh icon you can see when you mouse over the site in the site list).
3) If you're consistently seeing this issue every time you update your service, you might want to try upgrading. I notices you are running an older version of Essentials, and there have been a number of bug fixes since 4.5.
If all else fails, please open a support case, and we can assist you directly :)
Thanks!
Danny0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare