I think I understand your confusion. When you debug and visualize the processing of studio descriptors, it stops at the error line. In a normal situation, pressing F5 starts the same line again and you are in the error loop. But in your case, you have only one exception, and then VS is triggered since nothing happened.
I think you understand what is happening now. The first attempt to read .Read () is to read the file for xml data and move the index to the stream at the end of the file. After you press F5, you run this line again and read. Read () returns false because EOF. What is it.
In a normal run (without debugging), your application dies on the first intact error, and nothing else happens.
Bonus sample as evidence (insert instead of your while loop):
try { while (reader.Read()) { } } catch (Exception) { Console.Out.WriteLine("We have excpetion, this is wrong file"); } while (reader.Read()) { }
source share