Getting error "Illegal characters in path." when trying to load XDocument.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Please help me, i am getting the exception when trying to load a XDocument.<br/>Code snip:<br/><br/>string schema = GetSchema(index);<br/>            XDocument schemaDoc = null;<br/>            if (schema.Length != 0)<br/>            {<br/>                schema = schema.Replace("xs:", string.Empty);<br/>                schemaDoc = new XDocument();<br/>                schemaDoc = XDocument.Load(schema);<br/>            }<br/>I am getting the following error:<br/>Type: System.ArgumentException<br/>Source: mscorlib<br/>Message: Illegal characters in path.

View the full article
 
Back
Top