We are trying to view an XPS document using a Document Viewer as follows ( VB.NET code )
oDoc = New Xps.Packaging.XpsDocument(path:=sDocument, packageAccess:=IO.FileAccess.Read)
oSequence = oDoc.GetFixedDocumentSequence
oDocViewer.Document = oSequence
The second line causes it to throw an error
System.Windows.Markup.XamlParseException: ''Failed to create a 'NavigateUri' from the text .....
With an inner exception
Invalid URI: The hostname could not be parsed.
The URI in question, however, is a custom one, something like:
mylittlecustomprotocol://tonsandtonsofencryptedgarbagehere
The protocol handler we wrote for this has no problem with it. So we were hoping that there is a way to suppress this error for the mylittlecustomprotocol protocol
