Add the Internet permission to your project. Project Properties -> Android Manifest -> Permissions
We add this by default in Debug mode because we used to need it to enable the debugger. We no longer need it, but I haven't gotten around to removing it. Jonathan On 10/18/2011 4:38 PM, HSSoftware wrote: > I create a couple of UdpClient's for an app I am building. All works well > when, from VS 2010, I am in Debug mode. However, when I switch to Release > mode, and Deploy to the cell phone, I get an Access Denied exception > somewhere while executing these lines of code: > > if (mUdpClientTx == null) > mUdpClientTx = new UdpClient(61235); > if (mUdpClientRx == null) > mUdpClientRx = new UdpClient(61234, > AddressFamily.InterNetwork); > > Any ideas? > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Can-create-new-UdpClient-in-Debug-build-not-Release-tp4915521p4915521.html > Sent from the Mono for Android mailing list archive at Nabble.com. > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > > _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid