Bug 60278 - Xamarin causes Catastrophic Failure when double click on xaml file in VS2015 solution explorer
Summary: Xamarin causes Catastrophic Failure when double click on xaml file ...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: 4.7.0 (15.4)
Hardware: PC Windows
: --- major
Target Milestone: 15.5
Assignee: Bugzilla
Depends on:
Reported: 2017-10-19 19:35 UTC by jjacobsen@lehighdim.com
Modified: 2017-11-13 11:23 UTC (History)
7 users (show)

Is this bug a regression?: Yes
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 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:

Description jjacobsen@lehighdim.com 2017-10-19 19:35:49 UTC
I had Xamarin and updated it to  Now, double-clicking on an xaml file causes 'catastrophic failure (exception from HRESULT...E_UNEXPECTED...'.  I have rebooted since the update.  The VS2015 Forms solution was fine before the update.  I can rt-click the file and open it with the default editor ok.  After that, I can double-click xaml files and they open ok.  All is well until I close all the xaml files, close the solution, then open the solution.  Please fix this.
Comment 1 gremlin80 2017-10-23 21:09:29 UTC
problem is related to the 'editor extension' used by Visual Studio to edit the file. It does happen on VS2015/2017 on windows 7 or windows 10 machines.

It does prevent to edit xaml files with proper support.
Comment 2 Jimmy [MSFT] 2017-10-23 21:16:59 UTC
I am able to reproduce this only on VS2015. If you are also seeing this on VS2017 can you share a sample project so we can take a look?

### Steps to Reproduce 
1. In VS2015, create a new MasterDetail Xamarin.Forms project
2. Open one of the XAML pages in the "Views" folder

### Expected Results
The file is opened

### Actual Results
Error window appears with

> Catastrophic failure (Exception from HRESULT: 0x8000FFFF) (E_UNEXPECTED))

### Workaround
Right click the file and select "Open With.." > "Automatic Editor Selector (XML)"