I never did get an answer for this one. I will correct the problem as it is also causing the exception when I manually copy the APK to a device and installs it.
I've tried both to use Debug and Release mode. The main problem is that I'm seeing completely different behavior when running the app from VS (on a device) compared to manually copying the APK to the same the device and installing it. How can this be? Another strange behavior is that when calling the following I get a ClassNotFoundException: list.ItemClick += new EventHandler<ItemEventArgs>(List_ItemClick); Why is the behavior so different depending on whether the APK is deployed by Mono or installed from Market/installed manually on a device? I need this problem solved ASAP so any help is greatly appreciated. Regards, Nicklas From: [email protected] [mailto:[email protected]] On Behalf Of Nicklas Møller Jepsen Sent: 21. september 2011 15:31 To: Discussions related to Mono for Android ([email protected]) Subject: [mono-android] System.Net.Sockets exception Hi, After I deploy my app to Android Market I get the following exception: ERROR/mono(5886): Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Net.Sockets.Socket ---> System.Net.Sockets.SocketException: An address incompatible with the requested protocol was used I know that the protocol is HTTPS and that the address is an IP. This I working fine when deploying from VS and also when I manually installed the APK on a device, but when I download the exact same APK from Market the above happens. Anyone ideas? Med venlig hilsen Nicklas Møller Jepsen [email protected]<mailto:[email protected]> mobile: + 45 20 99 93 35 office: + 45 70 20 65 25 Børsen Gazelle 2009 og 2010 Vil du gerne modtage informationer om nye versioner, faciliteter og produkter ? Tilmeld dig vores nyhedsbrev på http://www.blueposition.com/nyhedsbrev We take mobility to the next level - www.MobilePBX.dk<http://www.mobilepbx.dk/> - www.BluePosition.com<http://www.blueposition.com/> - www.MobileIVR.dk<http://www.mobileivr.dk/> BluePosition: BluePosition tilbyder i samarbejde med førende mobiloperatører en række unikke softwareprodukter, der i kombination med operatørens netværksfaciliteter gør det muligt at implementere en erhvervstelefoniløsning der udelukkende er baseret på mobiltelefoni, eller som er baseret på en "One Phone" strategi hvor hver medarbejder kun har én telefon, det være sig være en mobiltelefon eller en fastnet/IP telefon.
_______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
