Re: [mono-android] NameResolutionFailure in release build only

2012-03-23 Thread Jonathan Pryor
On Mar 23, 2012, at 8:43 AM, andyjohnson0 wrote: > I've finally got to the root of this. As you suspected, I had a class derived > from Android.App.Application that had a [Application(Label = "MyApp")] > attribute. It looks like this was conflicting with the manifest, which had a > element. I'v

Re: [mono-android] NameResolutionFailure in release build only

2012-03-23 Thread andyjohnson0
I've finally got to the root of this. As you suspected, I had a class derived from Android.App.Application that had a [Application(Label = "MyApp")] attribute. It looks like this was conflicting with the manifest, which had a element. I've removed the attribute from the class. My application now

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 1:25 PM, andyjohnson0 wrote: > I created a new project as you suggested, added a manifest using > (project)->Properties->Android Manifest->Create Manifest, added the > original source files and axml files (but not the original manifest). It > compiles okay but doesn't deploy. S

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread andyjohnson0
If I take the Properties\AndroidManifest.xml line out of the oroginal project file then it builds and deploys without error. I created a new project as you suggested, added a manifest using (project)->Properties->Android Manifest->Create Manifest, added the original source files and axml files (

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 11:37 AM, andyjohnson0 wrote: > I'd be grateful for any suggestions. I have no idea what's breaking, or why. :-( I would suggest creating a new project, adding your sources to it, and trying with the new project. I'm also wondering how you managed to break the current projec

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread andyjohnson0
Hi Jonathan, Thanks for the response. I changed the build action to None, unloaded the project, added the line you suggested using notepad, and re-loaded. The application compiles okay but I get a deployment error - see http://pastebin.com/rCHri1ih for the output. Before adding the line I checke

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 9:10 AM, Andrew Johnson wrote: > My AndroidManifest.xml contains android:name="android.permission.INTERNET" /> and its build action is Content. This is incorrect. The Build action should be None. Furthermore, edit your .csproj and confirm that it contains the following XML fr

[mono-android] NameResolutionFailure in release build only

2012-03-22 Thread Andrew Johnson
I have some coden that does an HttpWebRequest to a remote web server. A debug build works correctly in the emulator, but a release build consistently throws a WebException containing the message 'NameResolutionFailure'. The exception is thrown when I call GetResponse() on the HttpWebRequest object,