[MonoTouch] Error building/deploying since last update
Rolf Bjarne Kvinge
rolf at xamarin.com
Thu Dec 8 08:22:56 EST 2011
Hi,
On Thu, Dec 8, 2011 at 8:41 AM, Matthieu Laban <
matt at flyingdevelopmentstudio.com> wrote:
> Hello Rolf,
>
> I get an exception:
>
> Unhandled Exception: System.Net.Sockets.SocketException: No such host is
> known
> at System.Net.Dns.hostent_to_IPHostEntry (System.String h_name,
> System.String[] h_aliases, System.String[] h_addrlist) [0x00000] in
> <filename unknown>:0
> at System.Net.Dns.GetHostByName (System.String hostName) [0x00000] in
> <filename unknown>:0
> at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress)
> [0x00000] in <filename unknown>:0
> at IPs.Main () [0x00000] in <filename unknown>:0
> [ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException: No
> such host is known
> at System.Net.Dns.hostent_to_IPHostEntry (System.String h_name,
> System.String[] h_aliases, System.String[] h_addrlist) [0x00000] in
> <filename unknown>:0
> at System.Net.Dns.GetHostByName (System.String hostName) [0x00000] in
> <filename unknown>:0
> at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress)
> [0x00000] in <filename unknown>:0
> at IPs.Main () [0x00000] in <filename unknown>:0
>
Yes, this indicates that mono can't lookup the IP address(es) of your
machine.
If you can somehow make this test app work (by changing your system
configuration, I'm not sure why mono can't detect your network adapter(s)),
then you'll be able to debug in MonoDevelop again too.
As a start you can modify the test app to print out the host name, by
adding this as the first line in Main:
System.Console.WriteLine ("HostName: {0}", System.Net.Dns.GetHostName ());
to see if the host name is correct.
> I've been able to deploy in release, what triggers the issue is when I
> check emit debugging information in the project settings.
>
As expected, when debugging the app needs to communicate with MonoDevelop,
and since a network is required when debugging over WiFi, we show an error
when no network is found (same thing that happened to the small test
program I sent you). We obviously shouldn't require a network when
debugging over the USB cable (I never intended to, but as I mentioned I got
some boolean logic wrong when I added this check - it'll be fixed in the
next release).
Rolf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111208/e6901c6a/attachment.html
More information about the MonoTouch
mailing list