[MonoTouch] Error building/deploying since last update
Matthieu Laban
matt at flyingdevelopmentstudio.com
Thu Dec 8 12:17:30 EST 2011
Hello Rolf,
The hostname is KVNY, the name of my machine.
I added an entry for it in my /private/etc/hosts file (127.0.0.1 KVNY) and
it now works (both test.cs and deployment). Not sure why it wouldn't
resolve the name of the machine...
Note that I can't even ping KVNY without this entry in the hosts file.
Thanks for your help and let me know if you need me to test anything else.
Matt
On Thu, Dec 8, 2011 at 5:22 AM, Rolf Bjarne Kvinge <rolf at xamarin.com> wrote:
> 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/e7e318bc/attachment.html
More information about the MonoTouch
mailing list