Bug 5771 - Exception thrown by opening an axml-File.
Summary: Exception thrown by opening an axml-File.
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-06-20 02:53 UTC by a.ruether@milion-verlagsmarketing.de
Modified: 2012-07-09 11:10 UTC (History)
2 users (show)

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 a.ruether@milion-verlagsmarketing.de 2012-06-20 02:53:06 UTC
Description of Problem:
When opening an axml-File an exception from type "Xamarin.AndroidDesignerException" is thrown in the Designerview.
The xmlview is empty.
But the axml-File is not empty( proved with an external programm(notepadd++)).

Steps to reproduce the problem:
1. Start or open an project (c# Mono for android)
2. Open an axml-File in "Resources/layout"


Actual Results:
exception from type "Xamarin.AndroidDesignerException" is thrown

Expected Results:
Display the view of the axml-File

How often does this happen? 
every time

Additional Information:
OS: Window 7
Monodevelop 3.0.2

exception is thrown after update monodevelop on version 3.0.2 and Mono for Android 4.2.3 (releasedate of update: 19.07.2012)
Comment 1 Lluis Sanchez 2012-06-21 09:46:20 UTC
Could you please try with MonoDevelop 3.0.3?
If you still get the error, could I get a copy of the resources folder of the project or at least the file causing the problem? If you wish, you can attach the file in a private comment.
Comment 2 Marcel 2012-06-30 10:04:09 UTC
Upon opening an .axml file in MonoDevelop 3.0.3.2 MonoDevelop freezes. Everytime. When opening it via context menu it works (Right click/Open with/Code-editor). 

When trying to load a project it freezes when the last file open was an .axml file. No way to get the project loaded again. (Visual Studio 2010 also crashes upon opening an .axml file)

OS: Win7 64bit.
Comment 3 Lluis Sanchez 2012-07-02 05:12:12 UTC
@Marcel: that's likely caused by having installed the latest Android SDK version (API level 16), which is not supported by the designer. A hotfix will be released soon.
Comment 4 Peter Davis 2012-07-02 06:17:15 UTC
This issue also froze Visual Studio 2010 and 2012 RC and by removing API level 16 from the SDK Manager resolved the issue.
Comment 5 Marcel 2012-07-02 10:23:07 UTC
Removing API level 16 from the SDK Manager resolved the issue for me too. Thanks!
Comment 6 Lluis Sanchez 2012-07-09 11:10:39 UTC
Closing.