[Mono-list] XMLDocument.Load() With Path Fails on Windows
Gonzalo Paniagua Javier
gonzalo@ximian.com
01 Jul 2003 10:52:31 +0200
El mar, 01-07-2003 a las 08:21, JD Conley escribió:
> The following code snippet will fail to load the xml document located in
> the same path as the output binary under Windows. Attached is the xml
> file I was trying to load. This was done on Mono-0.25. The same code
> worked quite well on 0.24.
>
> private void breakXML()
> {
> System.Xml.XmlDocument x = new System.Xml.XmlDocument();
> x.Load("broken.xml");
> }
>
> The stack trace is as follows:
> System.NotSupportedException: file:///c:/test/broken.xml
> in <0x00188> 00 System.Net.WebRequest:GetCreator (string)
You need to install a new machine.config (it's in mono/data directory)
to $PREFIX/etc/mono.
Right now you can register schema - handler associations in
machine.config file and the default ones are http/https -
System.Net.HttpRequestCreator and file - FileWebRequestCreator.
-Gonzalo