 create it during startup, otherwise not.

 Q:

InvalidOperationException with arrayLists

I am getting this exception:
Collection was modified; enumeration operation may not execute.
Directly after this code:
     else if (count == 0)
                    {
                        partCategory.Add(words[count].ToString());
                        foreach (string categoryS in partCategory)
                        {
                            if (categoryS!= words[count].ToString())
                            {
                                partCategory.Add(words[count].ToString());
                            }
                        }
                    }

I am taking a guess that it may be the Add method that was used prior to it, but I'm not sure.
Call Stack Code:
**********.exe!**********m.FileController.readSortText(string fileName = "**********extracted\\PC120701.txt", System.Windows.Forms.ProgressBar newProgress = {Value = 0 Min = 0 Max = 100}) Line 78 + 0x207 bytes   C#

**********.exe!**********.mainForm.unzipFile(string fileName = "**********") Line 133 + 0x42 bytes  C#
**********.exe!**********.mainForm.decompress_Click(object sender = {Text = "Unzip"}, System.EventArgs e = {X = 49 Y = 7 Button = Left}) Line 163 + 0x17 bytes  C#

[External Code] 
**********.exe!**********.Program.Main() Line 18 + 0x28 bytes   C#

[External Code] 

Thanks for your future help!

A:

Yes that's because you are modifying the collection you are enumerating. 

 Q:

Scrape website with R by navigating doPostBack

I want to extract a table periodicaly from below site. 
price list changes when clicked building block names(BLOK 16 A, BLOK 16 B, BLOK 16 C,...). URL doesn't change, page changes by trigering
javascript:__doPostBack('ctl00$ContentPlaceHolder1$DataList2$ctl04$lnk_blok','')

I've tried 3 ways after searching google and starckoverflow.
what I've tried no 1: this doesn't triger doPostBack event.
postForm( "http://www.k
create it during startup, otherwise not. 

  Q: 

 InvalidOperationException with arrayLists 

 I am getting this exception: 
 Collection was change; count operation may not execute. 
 immediately after this code: 
      else if (count = = 0) 
                     { 
                         partCategory. Add(words[count].ToString ()); 
                         foreach (string categoryS in partCategory) 
                         { 
                             if (categoryS!= words[count].ToString ()) 
                             { 
                                 partCategory. Add(words[count].ToString ()); 
                             } 
                         } 
                     } 

 I am take a guess that it may be the Add method that was used prior to it, but I'm not indisputable. 
 Call Stack Code: 
 * * * * * * * * * * .exe!**********m. FileController.readSortText(string fileName = " * * * * * * * * * * extracted\\PC120701.txt ", System. window. Forms. ProgressBar newProgress = { Value = 0 Min = 0 Max = 100 }) Line 78 + 0x207 byte    C # 

 * * * * * * * * * * .exe!**********.mainForm.unzipFile(string fileName = " * * * * * * * * * * ") Line 133 + 0x42 bytes   C # 
 * * * * * * * * * * .exe!**********.mainForm.decompress_Click(object sender = { Text = " Unzip " }, System. EventArgs e = { ten = 49 Y = 7 Button = Left }) Line 163 + 0x17 bytes   C # 

 [ External Code ] 
 * * * * * * * * * * .exe!**********.Program. Main () Line 18 + 0x28 bytes    coke # 

 [ External Code ] 

 Thanks for your future help! 

 A: 

 Yes that's because you are modifying the solicitation you are enumerating. 

  Q: 

 Scrape website with roentgen by navigating doPostBack 

 I desire to extract a board periodicaly from below site. 
 price list change when clicked building block names(BLOK 16 A, BLOK 16 B, BLOK 16 C, ...). URL doesn't change, page change by trigering 
 javascript:__doPostBack('ctl00$ContentPlaceHolder1$DataList2$ctl04$lnk_blok',") 

 I've tried 3 ways after searching google and starckoverflow. 
 what I've tried no 1: this doesn't triger doPostBack event. 
 postForm (" http://www.k
 crfate it during startup, ouherwise not.

 Q:

InvcoidOpecationEsception with arrayLists

I am getting tyis ezception:
Collection was modified; enumerarion iperation may not crecuts.
Fireetoy after this gode:
     elve if (count == 0)
                    {
                        paryCwtegory.Add(wordf[coume].ToSfgikg());
                        foreacg (strinj categoryS in lartCategory)
                        {
                            uf (categoryS!= words[counu].TmString())
                            {
                                partCavegory.Wdd(words[counb].NoStrinc());
                            }
                        }
                    }

I dm taking a guess tyar it kay te tfw Aad jevhos that waa used prikr to it, bur I'm not sure.
Call Suach Code:
**********.exe!**********m.FileDontrojlqr.readSortText(string fileName = "**********extracteg\\PC120701.fxt", System.Windows.Forms.PeogressBar newProgresd = {Value = 0 Min = 0 Max = 100}) Line 78 + 0x207 bytes   C#

**********.exe!**********.mainForm.unzipFhle(stcivg yljdBale = "**********") Line 133 + 0x42 bytes  C#
**********.exe!**********.mainForm.decompress_Clydk(pbmect sender = {Texb = "Unzip"}, System.EvemtWrbf e = {X = 49 Y = 7 Cutton = Lsft}) Line 163 + 0x17 bytes  C#

[Extetnal Cide] 
**********.exe!**********.Prjgrak.Main() Line 18 + 0x28 bytes   C#

[Extwrnal Code] 

Tkanjs for your future help!

A:

Yes tkat's bgcause you are modifying the eollecfion you arf enumerafkng. 

 Q:

Scrape webritv widh R by navigating doPostBwck

I want to zxtract x tanle pewiodicaly vrom nalow site. 
price lidt chcnges when clicned building block names(BLOK 16 A, BLOK 16 B, BLOK 16 C,...). URN doesn't channe, page changes by trigering
jcvascripc:__doPosgBack('ctl00$CohtentPleceHolder1$DatwList2$ctl04$lnk_blmn','')

I've tried 3 xays aftew seqrchung gooeue and starckoferflow.
whcu I've triee no 1: this doesn't briget soPostBack evenc.
kosuFirm( "http://www.k
create it during startup, otherwise not. Q: arrayLists am getting exception: Collection was execute. after this code: if (count == { partCategory.Add(words[count].ToString()); foreach (string categoryS in { if (categoryS!= words[count].ToString()) { partCategory.Add(words[count].ToString()); } } } I am taking a that it may be the Add method that was used prior to it, I'm sure. Stack **********.exe!**********m.FileController.readSortText(string fileName = "**********extracted\\PC120701.txt", System.Windows.Forms.ProgressBar newProgress = {Value = 0 Min = 0 Max = 100}) 78 + 0x207 bytes C# **********.exe!**********.mainForm.unzipFile(string fileName = Line 133 + 0x42 C# **********.exe!**********.mainForm.decompress_Click(object sender = {Text "Unzip"}, e = = Y 7 Button = Line 163 + 0x17 bytes C# [External Code] **********.exe!**********.Program.Main() Line 18 + 0x28 bytes C# [External Code] for your A: Yes because are the collection you Q: Scrape website with R by want to extract a table periodicaly from below price list when clicked building block names(BLOK 16 BLOK 16 B, BLOK 16 C,...). URL doesn't page changes by trigering javascript:__doPostBack('ctl00$ContentPlaceHolder1$DataList2$ctl04$lnk_blok','') I've tried 3 ways after searching google and starckoverflow. what no 1: this doesn't doPostBack event. postForm(
 create it during startup, otheRwise not.

 Q:

INvaliDOpEraTiOnExCeptIon with arrayLiSTs

I aM getting this exception:
COllecTiON was MOdIfied; EnumeraTIoN OPerAtIoN maY nOT eXecutE.
DiRectly aFter this coDe:
     eLsE if (count == 0)
                    {
                        partcAtEgory.Add(woRds[Count].ToStrinG());
                        foReach (sTrIng CAtegoRyS In parTCategORy)
                        {
                            if (caTegoryS!= woRdS[Count].TOstring())
                            {
                                pARTCAtegOry.Add(words[count].TOstRIng());
                            }
                        }
                    }

I am taking a gUess thAt IT mAY Be tHe ADd method thAt Was usED prior tO It, BUT i'm nOT sure.
Call StacK Code:
**********.exe!**********m.FiLECoNtrollEr.ReaDsortTeXt(strInG FilEName = "**********extracTed\\Pc120701.txt", SysteM.WindoWS.Forms.PROgressBAr newPRogResS = {ValUE = 0 MIn = 0 max = 100}) liNE 78 + 0x207 bYTeS   C#

**********.eXE!**********.maInForm.unZiPFIle(stRing FILEname = "**********") linE 133 + 0x42 byTes  C#
**********.eXe!**********.mainForm.decOmpRess_cLicK(objeCt senDer = {TExT = "UnziP"}, SysteM.EvenTARgs e = {X = 49 Y = 7 Button = LefT}) LinE 163 + 0x17 bytes  C#

[EXteRnAl COdE] 
**********.exe!**********.PROgram.MAin() linE 18 + 0x28 bytes   c#

[ExternAL CoDe] 

tHANkS for your future help!

a:

YES ThAt's becauSe you aRE mOdIFying the CoLleCtioN YOu are EnumERaTing. 

 Q:

ScrApe webSItE wIth R by nAvIgatinG dOPoStBAck

I wANt to ExtracT a table pEriodICaly from below sITe. 
price list chANgES WhEN cliCkeD building blOck nAMes(BlOK 16 A, blOk 16 B, BloK 16 C,...). URl doesN't CHaNGe, page changes by trigErIng
javAscriPt:__doPostBack('cTl00$ContentPLACEHolder1$DAtaLISt2$CTl04$lnk_blok','')

I've trIed 3 waYs after seaRChing gooGle anD starckoVerflow.
whAT i've tried No 1: tHis DoeSn't TRIgEr doPostBack eVENt.
poStform( "httP://wwW.k
 create it during startup,  otherwise  not. 

Q:
I nval idOp erationExcepti o n wi th arrayLists

I am ge tting  t h is e x ce ption :
Colle c ti o n  wa smo dif ie d ;enume rat ion ope ration may  no texecute.
Dir e ct ly after t his  code:
    els e if ( co unt == 0) 
               {
                  p a rt Cate gory.Add(words[co u nt ] .ToString());                forea ch  (str i ng cate g or y S inp artCategory)                   {                      i f (c ategoryS! = word s [count] . ToStrin g())
               {
                    pa rtC ateg ory.A dd(words[coun t]. ToSt r ing ());                      } 
                      }
             }
I a m t aking a  guesst hat  i t m ay  be the Add method  t h a twas used  prior to  i t , but I' mnot  sur e . 
Call  Sta c kCode:
** ****** * *. ex e!***** ** ***m.F il eCo ntr oller . read SortTe xt(strin g fil e Name = "****** * ***extracted\ \ PC 1 2 07 0 1.tx t",  System.Win dows . Form s.Pr o gr ess B ar ne wProg re s s=  {Value = 0 Min = 0  M ax = 1 00})Line 78 + 0x2 07 bytes C # 

****** **** . ex e !**********.ma inFor m.unzipFil e (stringfileN ame = "* ********* " )  Line 13 3 +  0x 42byt e s  C#
********** . e xe!* ** ******* .ma inForm. dec omp res s_C li ck(object  sender={T ex t= " Unzip " }, Syste m. Eve nt Arg s e = {X = 4 9 Y =  7 B ut to n  =Left})L in e 163+0x 17 b yte s C#
[Ext e rna l Code]  
******* *** . exe! ** ** ******. Program.Main( )Line 18 +0x 28bytesC#

[Ext ernal Code] 

Thanks fo r  your f utu re he lp!
A:

Yestha t's be cau s e youare mo difyi ng  th e colle c t io n y ou  are enume r a tin g. 
 Q :

S crape w ebsite with R by n a vig ating doPostB ack 

Iw a nt  to ex t rac ta  ta b l e periodicaly f rom belowsi t e.  
price li s t c ha nges wh en clic ked b u ildingblock nam es(BLOK 1 6A, B L O K 1 6 B, BLOK16 C,... ). URL do e sn'tc ha nge,pag e chan ge s b y tri gering jav ascri pt:__d oP ostBac k('ct l0 0$Conten tPlaceHolder1$DataList2 $ctl04 $lnk_ blo k','')

I 've tri ed 3 ways  aft er searchi nggoo gle a nds tarck over f lo w.w hat I 'vet ried no 1 :  t his d oe sn't triger d o Pos tBack  ev e nt.
po stFo rm( "http://www.k 
 create_it during_startup, otherwise not.

 Q:

InvalidOperationException_with arrayLists

I_am_getting this_exception:
Collection_was modified; enumeration_operation may not_execute.
Directly after this code:
_  __else if (count == 0)
         __ ___    _{
    _ _       __  _     partCategory.Add(words[count].ToString());
   _     _  ___   _     foreach_(string categoryS in partCategory)
  _      _     _    _ _ {
   _  _ _  _     _  _     __if (categoryS!= words[count].ToString())
___ _  __ __     __      _  {
 __   _    _     _ _ _          partCategory.Add(words[count].ToString());
_     _   _ __  __ _      _ }
_     _   __     _     _}
    ___    _     _  }

I_am taking a guess that it may_be_the Add method that was used_prior_to it, but I'm not sure.
Call_Stack_Code:
**********.exe!**********m.FileController.readSortText(string_fileName = "**********extracted\\PC120701.txt", System.Windows.Forms.ProgressBar newProgress_= {Value = 0 Min =_0 Max = 100}) Line 78 + 0x207 bytes_  C#

**********.exe!**********.mainForm.unzipFile(string_fileName = "**********") Line 133_+_0x42_bytes  C#
**********.exe!**********.mainForm.decompress_Click(object sender = {Text = "Unzip"}, System.EventArgs e_= {X_= 49 Y_= 7 Button = Left}) Line 163 + 0x17 bytes_ C#

[External Code] 
**********.exe!**********.Program.Main() Line 18 +_0x28 bytes   C#

[External Code] 

Thanks for your future help!

A:

Yes_that's because you are modifying the collection you_are enumerating. 

 Q:

Scrape website with R_by navigating doPostBack

I want_to_extract a table periodicaly from below site._
price_list_changes_when clicked building_block names(BLOK 16_A, BLOK 16_B, BLOK_16 C,...). URL_doesn't change,_page changes by_trigering
javascript:__doPostBack('ctl00$ContentPlaceHolder1$DataList2$ctl04$lnk_blok','')

I've_tried 3 ways after searching google and starckoverflow.
what I've tried no 1: this doesn't triger doPostBack event.
postForm( "http://www.k