private void checkUrl()
        {
            Random ran    = new Random();
            int    tmpRan = ran.Next();

            System.Collections.IEnumerator ie = this.arr.GetEnumerator();
            int count = 0;

            while (ie.MoveNext())
            {
                if (ie.Current.ToString() == Globals.RightManagerURL)
                {
                    count++;
                }
            }

            if (count >= 3)
            {
                this.service.Url     = Globals.RightManagerURL2;
                this.service.Timeout = 50000;
                return;
            }

            ie    = this.arr.GetEnumerator();
            count = 0;
            while (ie.MoveNext())
            {
                if (ie.Current.ToString() == Globals.RightManagerURL2)
                {
                    count++;
                }
            }

            if (count >= 3)
            {
                this.service.Url     = Globals.RightManagerURL;
                this.service.Timeout = 50000;
                return;
            }
            if (tmpRan % 2 == 0)
            {
                try
                {
                    service.Url = Globals.RightManagerURL;
                    string result = service.HelloWord();
                }
                catch (System.Exception ex)
                {
                    arr.Add(Globals.RightManagerURL);
                    service.Url = Globals.RightManagerURL2;
                }
            }
            else
            {
                try
                {
                    service.Url = Globals.RightManagerURL2;
                    string result = service.HelloWord();
                }
                catch (System.Exception ex)
                {
                    arr.Add(Globals.RightManagerURL2);
                    service.Url = Globals.RightManagerURL;
                }
            }

            this.service.Timeout = 50000;
        }