This project has moved. For the latest updates, please go here.


SchemaData.SchemaUrl should not be a Uri


The SchemaUrl of a SchemaData does not have to be a valid Uri. Requiring Uri as the type means that you cannot use this properly. See the section about schemaData.

Notice that schemaUrl can be anyURI. In the example the following is given
<SchemaData schemaUrl="#TrailHeadTypeId">
Trying to create a Uri with the text #TrailHeadTypeId will throw an exception: "Invalid URI: The format of the URI could not be determined."
Closed Jul 20 at 5:15 AM by samcragg
You can make relative URIs by using the overloaded constructor, as discussed here:

var uri = new Uri("#TrailHeadTypeId", UriKind.Relative);


skendrot wrote Jul 20 at 2:04 PM

Thanks. Forgot about relative uris!