Hi, Have you added the INTERNET required permission to your application? It's set automatically in Debug builds so that the debugger can communicate with the target, but you have to specify it explicitly for release mode. In MonoDevelop you add it in your project's Options->Mono for Android Application property panel.
Regards, Paul -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of cdodge Sent: Tuesday, 22 May 2012 5:52 AM To: [email protected] Subject: [mono-android] Trouble with HttpListener on Release Builds Hi, We've recently purchased MonoDroid/MonoTouch licenses and I'm deploying my app to actual devices now. However, now I'm seeing something odd with a HttpListener (on port 1968) on MonoDroid only on release builds onto an actual device. E/mono (20304): Unhandled Exception: System.Net.Sockets.SocketException: Access denied E/mono (20304): at System.Net.Sockets.Socket..ctor (AddressFamily family, SocketType type, ProtocolType proto) [0x00000] in <filename unknown>:0 E/mono (20304): at System.Net.EndPointListener..ctor (System.Net.IPAddress addr, Int32 port, Boolean secure) [0x00000] in <filename unknown>:0 E/mono (20304): at System.Net.EndPointManager.GetEPListener (System.Net.IPAddress addr, Int32 port, System.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0 E/mono (20304): at System.Net.EndPointManager.AddPrefixInternal (System.String p, System.Net.HttpListener listener) [0x00000] in <filename unknown>:0 E/mono (20304): at System.Net.EndPointManager.AddListener (System.Net.HttpListener listener) [0x00000] in <filename unknown>:0 I presume there's some security permissions thing going on here. Debug builds are fine. Also, same code running on MonoTouch works fine in all configurations. What could be the difference between Debug and Release build runtime environments? Are debug builds running under a different security level?!? Thanks for any help. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Trouble-with-HttpListener- on-Release-Builds-tp5709946.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
