I am having trouble understanding why adding targetnamespace to the XSD resolves the error thrown in C#.
targetnamespace
This is the example XSD: