/// <summary>
    /// Creates mapping service instance.
    /// </summary>
    private void CreateMapService()
    {
      if (Application[MAP_SERVICE_OBJECT_NAME] == null)
      {
        AspNetHostMapService mapService = new AspNetHostMapService();
        mapService.Load();
        mapService.Start();

        this.Application[MAP_SERVICE_OBJECT_NAME] = mapService;
      }
    }
        /// <summary>
        /// Creates mapping service instance.
        /// </summary>
        private void CreateMapService()
        {
            if (Application[MAP_SERVICE_OBJECT_NAME] == null)
            {
                AspNetHostMapService mapService = new AspNetHostMapService();
                mapService.Load();
                mapService.Start();

                this.Application[MAP_SERVICE_OBJECT_NAME] = mapService;
            }
        }
 /// <summary>
 /// Destroyes mapping sevice instance.
 /// </summary>
 private void DestroyMapService()
 {
     try
     {
         if (Application[MAP_SERVICE_OBJECT_NAME] != null)
         {
             AspNetHostMapService mapService = (AspNetHostMapService)Application[MAP_SERVICE_OBJECT_NAME];
             mapService.Dispose();
             Application[MAP_SERVICE_OBJECT_NAME] = null;
         }
     }
     catch
     { }
 }