Xmlvalidatingreader obsolete net
Both sections pointed to my external settings file "app Settings.config" but the first app Settings element using the attribute file whilst the other used the attribute config Source.
In any case, my overall experience with this situation has been very frustrating. The problem is that you can't distinguish between "acceptable" warnings generated while reading a conforming ".xml" file (warnings I can safely ignore), and those that really need to be treated as errors (normally because you're dealing with a non-conforming ".xml" file).
Hi there, I've created a strongly-typed "Data Set" using VS. Write Xml()" and later prompt my users for the name of the file in order to read it back in again (using "Data Set. In any case, my overall experience with this situation has been very frustrating.
Read Xml()"), how do I validate that the file they enter is valid. I just want to validate an ".xml" Firstly, add a while (reader. That will cause the reader to walk over the document.
If you look at the Inner Exception of the thrown exception, it will tell you which section is the problem.
I had this same problem with an MSTest class: Marlon Grech in his article says "the element has to be defined as the first element in the App.config." So make sure that is the first element in under the element. If you have User scoped settings you may also have a user.config file somewhere in the [Userfolder]\App Data\Local[Project Name] folder.