[Mono-devel-list] machine.config not found on Windows

Michi Henning michi at zeroc.com
Wed Jun 29 01:09:47 EDT 2005

Hi, I've just installed Mono 1.1.8.

When I try to run one of my binaries, I now get (under cygwin):

$ mono ./server.exe
Ice.DNSException: GetHostName failed ---> System.TypeInitializationException: An exception was thrown by the type initia
lizer for System.Net.Dns ---> System.Configuration.ConfigurationException: Cannot find C:\cygwin\opt\mono\etc:\mono\1.0\
machine.config ()
in <0x000a6> System.Configuration.DefaultConfig:Init ()
in <0x0000d> System.Configuration.DefaultConfig:GetConfig (System.String sectionName)
in <0x0001a> System.Configuration.ConfigurationSettings:GetConfig (System.String sectionName)
in <0x000b5> System.Net.Sockets.Socket:CheckProtocolSupport ()
in <0x00007> System.Net.Dns:.cctor ()--- End of inner exception stack trace ---

in <0x00000> <unknown method>
in <0x00078> IceInternal.Network:getLocalHost (Boolean numeric)--- End of inner exception stack trace ---

in <0x00132> IceInternal.Network:getLocalHost (Boolean numeric)
in <0x00076> IceInternal.DefaultsAndOverrides:.ctor (Properties properties)
in <0x002b1> IceInternal.Instance:.ctor (Communicator communicator, Properties properties)

The same code base used to work with Mono 1.1.6, so I suspect that this is due to a configuratin/installation problem.
(I installed using the Windows installer on the download page.)



More information about the Mono-devel-list mailing list