I am trying to loop throw a collection of folder paths and for each path, navigate through some folders. I assigned a String Array with Directory.GetDirectories(). This piece of code works fine for the first folder path. But for the second path onwards, it throws Invalid Signature exception. This behavior is also not consistent. In debug, if I do Retry then, it goes through with out any issues.
Pls let me know if any one has come across this and have a suggestion on this.
Both the Assign statements are in the for each loop only. It works for the first folder path. For the second folder path onwards, it gives this error. Thing is, if I restart the whole process, it does not throw this error.