Bug 3070 - Clicking on main.axml gives an error
Summary: Clicking on main.axml gives an error
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 2.8 beta 3
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-01-25 17:42 UTC by Nat Friedman
Modified: 2012-01-26 03:21 UTC (History)
0 users

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Nat Friedman 2012-01-25 17:42:00 UTC
System.InvalidOperationException: Operation is not valid due to the current state of the object
  at System.Linq.Enumerable.Max (IEnumerable`1 source) [0x00056] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/System.Core/System.Linq/Enumerable.cs:1294 
  at Xamarin.AndroidDesigner.DesignerSessionParams.get_TargetSdkVersion () [0x00050] in /Users/builder/data/lanes/monodevelop-mac-designer/074024c3/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/DesignerSessionParams.cs:125 
  at Xamarin.AndroidDesigner.DesignerSession..ctor (Xamarin.AndroidDesigner.JavaProcessConnection connection, Xamarin.AndroidDesigner.DesignerProject project) [0x000cc] in /Users/builder/data/lanes/monodevelop-mac-designer/074024c3/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/DesignerSession.cs:167 
  at Xamarin.AndroidDesigner.DesignerProject.CreateSession () [0x00017] in /Users/builder/data/lanes/monodevelop-mac-designer/074024c3/source/md-addins/MonoDevelop.MonoDroid/Xamarin.AndroidDesigner/Xamarin.AndroidDesigner/DesignerProject.cs:161 
  at MonoDevelop.MonoDroid.Gui.AndroidDesignerView.Load (System.String fileName) [0x00108] in /Users/builder/data/lanes/monodevelop-mac-designer/074024c3/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Gui/AndroidDesignerView.cs:111 
  at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x000f8] in /Users/builder/data/lanes/monodevelop-mac-designer/074024c3/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1086
Comment 1 Nat Friedman 2012-01-25 17:47:17 UTC
We just determined that the Android SDK location was wrong on my computer.

We should display a friendly message to the user about this.
Comment 2 Lluis Sanchez 2012-01-26 03:21:31 UTC
Fixed in master.