In a
default Windows installation of Mono I noticed an issue with the
monobasepath.bat file (put in the Windows directory by the install).
It sets up the environment variables with quotes around them by
default. This causes the Mono runtime to search for the machine.config
file in a location that does not exist. It also incorrectly sets
up the path for the config directory.
Here is what the
file looked like when it was installed:
set
MONO_BASEPATH="C:\Program Files\Mono-0.25"
set MONO_PATH="C:\Program Files\Mono-0.25\lib"
set MONO_CFG_DIR="C:\Program Files\Mono-0.25\etc\mono"
set MONO_PATH="C:\Program Files\Mono-0.25\lib"
set MONO_CFG_DIR="C:\Program Files\Mono-0.25\etc\mono"
Here is what it
should look like in order to function properly:
set
MONO_BASEPATH=C:\Program Files\Mono-0.25
set MONO_PATH=C:\Program Files\Mono-0.25\lib
set MONO_CFG_DIR=C:\Program Files\Mono-0.25\etc
set MONO_PATH=C:\Program Files\Mono-0.25\lib
set MONO_CFG_DIR=C:\Program Files\Mono-0.25\etc
I haven't looked
into the code for the installer so I'm not sure what to do to fix it. But
hopefully someone can. :) Not being able to find the machine.config
was causing issues with the XML DOM when trying to load documents from a
local file.
Thanks,
JD