Can't open Geocortex Essentials
I tried adding a new web site but ended up with a name I already had tried previously. Now I get an error when I try to open essentails:
An error occurred while processing your request.
An item with the same key has already been added.
Details:
Controller: Sites
Action: Index
Source: mscorlib
Message: An item with the same key has already been added.
StackTrace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at Geocortex.Essentials.Configuration.ExtensionHelpers.ToUriDictionary[T,TValue](IEnumerable`1 source, Func`2 uriSelector, Func`2 valueSelector, String baseUrl)
at Geocortex.Essentials.Configuration.Caching.XmlSiteLookup..ctor(DateTime lastScanTime, IEnumerable`1 siteInfos)
at Geocortex.Essentials.Configuration.Caching.XmlSiteCache.b()
at System.Reactive.Linq.QueryLanguage.<>c__DisplayClassd5`1.<>c__DisplayClassd7.<ToAsync>b__d4()
--- End of stack trace from previous location where exception was thrown ---
at System.Reactive.PlatformServices.ExceptionServicesImpl.Rethrow(Exception exception)
at System.Reactive.ExceptionHelpers.ThrowIfNotNull(Exception exception)
at System.Reactive.Linq.QueryLanguage.SingleOrDefaultInternal[TSource](IObservable`1 source, Boolean throwOnEmpty)
at Geocortex.Essentials.Configuration.Caching.CachingSiteConfigServer.GetSiteIDs()
at Geocortex.Essentials.RestManager.Models.Repositories.SiteConfigRepository.GetSiteIDs()
at Geocortex.Essentials.RestManager.Controllers.SitesController.Index()
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.InvokeAction(ControllerContext controllerContext, String actionName)
0
-
Hi Angie,
I'm assuming that this has already been resolved, but if not, please open a new case so we can work with you to investigate this issue!
Thanks,
Danny0 -
Hi Michael,
We've seen similar issues. Some things to consider:- Ensure your Sites directory is clean
- Ensure there are no duplicates/copies of Site.xml in your Sites directory
- Avoid making manual copies of Site.xml as backups and storing them in this location - Manager reads the xml files and looks for SiteIDs it does not like finding duplicates
- Check your Manager SiteCache files for any duplicate SiteIDs that may have been been written here
- C:\Program Files (x86)\Latitude Geographics\Geocortex Essentials\Default\REST Elements\Manager\App_Data\SiteCache
- You can edit these in Notepad++ and search for your Site name / SiteIDs - are there any duplicates stored in here?
- If so, and if you are certain your Sites directory is clean, you might try purging Manager's SiteCache files and recycling Manager's application pool.
Thanks,
Chris0 - Ensure your Sites directory is clean
-
Thanks Chris. It does look like it was an issue with the \REST Elements\Manager\App_Data\SiteCache file. Although I didn't think of manually searching and editing the file, Marion from Geocortex helped me and we refreshed the SiteCache.xml file by running the Post Installer. Next time I will look into the file first before going that route. Happy to say that everything worked out ok and I didn't lose any existing settings.
Thanks for the suggestions, it might come in handy in the future.
Regards,
Mike0 -
Hi Chris! It worked perfectly.
I deleted the site folder from the sites directory and then cleaned up the duplicate records for this site in the SiteCache.xml file. Finally, I recycled the ApplicationPool EssentialsAdministrationAppPoll4.
Thanks for suggestions.
Best regards,
João Pinheiro0
Please sign in to leave a comment.
Comments
4 comments