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

Daniel Morgan danielmorgan at verizon.net
Wed Jun 29 08:08:40 EDT 2005


There is a bug for this in Bugzilla at 
http://bugzilla.ximian.com/show_bug.cgi?id=75414

In the meantime, you may have to do what I do:
1. compile in cygwin
2. then run in the Mono Command Prompt (MS-DOS Command Prompt)

Michi Henning wrote:

> 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.)
>
> Thanks,
>
> Michi.
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>




More information about the Mono-devel-list mailing list