[Mono-list] XMLDocument.Load() With Path Fails on Windows

JD Conley jconley@winfessor.com
Wed, 2 Jul 2003 20:50:41 -0700


Then I guess I need some assistance in getting my Mono installation to =
read the machine.config.  Mono is installed to "C:\Program =
Files\Mono-0.25" (the default).  Whenever I run an executable through =
the command line, I get the following two messages:

** Warning **: cannot find "C:\Program =
Files\Mono-0.25\etc"\mono\machine.config
Trying to load app config file...

The path Mono is looking in for the machine.config is incorrect.  It =
should be "C:\Program Files\Mono-0.25\etc\mono\machine.config".  (the =
quotes are in the wrong spot)

Thanks
JD

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