Bug 44004 - Switching between Beta -> Stable sometimes disables a core VS Service (Microsoft.VisualStudio.Shell.Interop.IVsTaskList)
Summary: Switching between Beta -> Stable sometimes disables a core VS Service (Micros...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS ()
Version: 4.2.0 (C8)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-09-06 03:34 UTC by Jon Douglas [MSFT]
Modified: 2016-12-23 03:00 UTC (History)
5 users (show)

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


Attachments
VS IDE Logs (9.76 KB, text/plain)
2016-09-06 03:34 UTC, Jon Douglas [MSFT]
Details


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:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Jon Douglas [MSFT] 2016-09-06 03:34:58 UTC
Created attachment 17335 [details]
VS IDE Logs

*Description:

It seems that when going from the Beta channel -> Stable channel(VS 4.1.2.18(Stable) and VS 4.2.0.628(Beta)), it seems to disable a core feature inside Visual Studio.

```
Unhandled exception.
System.InvalidOperationException: The service 'Microsoft.VisualStudio.Shell.Interop.IVsTaskList' must be installed for this feature to work.  Ensure that this service is available.
   at Microsoft.VisualStudio.Shell.TaskProvider.get_VsTaskList()
   at Microsoft.VisualStudio.Shell.ErrorListProvider.get_VsTaskList()
   at Microsoft.VisualStudio.Shell.TaskProvider.Refresh()
   at Microsoft.VisualStudio.Shell.TaskProvider.TaskCollection.Add(Task task)
   at Xamarin.VisualStudio.ErrorProvider.ErrorTaskHelper.<>c__DisplayClass4_0.<AddTaskError>b__0() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio\ErrorProvider\ErrorTaskHelper.cs:line 89
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
```

We also have responded to a similar forum post here: https://forums.xamarin.com/discussion/68595/there-was-an-error-attempting-to-initialize-the-xamarin-ios-extension

Sadly there does not seem to be a straight forward way to "re-register" this service as I've already tried a complete and thorough uninstall(Reg Keys / Other Caches) of Xamarin and attempted to repair Visual Studio 2015 to no luck.

Given that this seems to be quite "random" in nature, I figured I'd log an issue now for future reports as it might creep up in the future.

Here are a few observations:

1) The current Beta Channel (4.2.0.628) will have the service registered correctly and the iOS Extension will load. There are no logs that indicate a failure. Thus I do not believe there is an issue here in the Beta channel.

2) Switching from Beta -> Stable (4.2.0.628 -> 4.1.2.18) causes the following exceptions to occur in the Xamarin.VisualStudio.iOS.XamariniOSPackage Initialization step(Ide.log file attached):

a) <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2016-09-06T03:07:51.8386236Z" /><Source Name="Xamarin.VisualStudio.IOS.Utilities.ErrorReportManager" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="2380" ThreadID="25" /><Channel /><Computer>DESKTOP-7SNQNF3</Computer></System><ApplicationData>Xamarin.iOS encountered the following error(s):</ApplicationData></E2ETraceEvent>

b) <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2016-09-06T03:07:51.9286574Z" /><Source Name="Xamarin.VisualStudio.IOS.XamarinIOSPackage" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="2380" ThreadID="23" /><Channel /><Computer>DESKTOP-7SNQNF3</Computer></System><ApplicationData>There was an error attempting to initialize the Xamarin.iOS extension.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Xamarin.VisualStudio.IOS.XamarinIOSPackage.Initialize() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio.IOS\XamarinIOSPackage.cs:line 300
   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)</ApplicationData></E2ETraceEvent>

c) <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2016-09-06T03:07:52.0473116Z" /><Source Name="Xamarin.VisualStudio.UnhandledExceptionsManager" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="2380" ThreadID="18" /><Channel /><Computer>DESKTOP-7SNQNF3</Computer></System><ApplicationData>Unhandled exception.
System.InvalidOperationException: The service 'Microsoft.VisualStudio.Shell.Interop.IVsTaskList' must be installed for this feature to work.  Ensure that this service is available.
   at Microsoft.VisualStudio.Shell.TaskProvider.get_VsTaskList()
   at Microsoft.VisualStudio.Shell.ErrorListProvider.get_VsTaskList()
   at Microsoft.VisualStudio.Shell.TaskProvider.Refresh()
   at Microsoft.VisualStudio.Shell.TaskProvider.TaskCollection.Add(Task task)
   at Xamarin.VisualStudio.ErrorProvider.ErrorTaskHelper.&lt;&gt;c__DisplayClass4_0.&lt;AddTaskError&gt;b__0() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio\ErrorProvider\ErrorTaskHelper.cs:line 89
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</ApplicationData></E2ETraceEvent>

d) <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"><System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"><EventID>0</EventID><Type>3</Type><SubType Name="Error">0</SubType><Level>2</Level><TimeCreated SystemTime="2016-09-06T03:07:52.2382824Z" /><Source Name="Xamarin.VisualStudio.IOS.XamarinIOSPackage" /><Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /><Execution ProcessName="devenv" ProcessID="2380" ThreadID="78" /><Channel /><Computer>DESKTOP-7SNQNF3</Computer></System><ApplicationData>An unhandled error occurred. Details: The service 'Microsoft.VisualStudio.Shell.Interop.IVsTaskList' must be installed for this feature to work.  Ensure that this service is available.

System.InvalidOperationException: The service 'Microsoft.VisualStudio.Shell.Interop.IVsTaskList' must be installed for this feature to work.  Ensure that this service is available.
   at Microsoft.VisualStudio.Shell.TaskProvider.get_VsTaskList()
   at Microsoft.VisualStudio.Shell.ErrorListProvider.get_VsTaskList()
   at Microsoft.VisualStudio.Shell.TaskProvider.Refresh()
   at Microsoft.VisualStudio.Shell.TaskProvider.TaskCollection.Add(Task task)
   at Xamarin.VisualStudio.ErrorProvider.ErrorTaskHelper.&lt;&gt;c__DisplayClass4_0.&lt;AddTaskError&gt;b__0() in C:\Users\builder\data\lanes\3544\fcbe0828\source\xamarinvs\src\Core\VisualStudio\ErrorProvider\ErrorTaskHelper.cs:line 89
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</ApplicationData></E2ETraceEvent>

*Expected Behavior:

Switching from any update channels should behave normally and not "de-register" any core VS services.

*Version Information:

Microsoft Visual Studio Professional 2015
Version 14.0.25421.03 Update 3
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Professional

LightSwitch for Visual Studio 2015   00322-40000-00000-AA889
Microsoft LightSwitch for Visual Studio 2015

Visual Basic 2015   00322-40000-00000-AA889
Microsoft Visual Basic 2015

Visual C# 2015   00322-40000-00000-AA889
Microsoft Visual C# 2015

Visual C++ 2015   00322-40000-00000-AA889
Microsoft Visual C++ 2015

Visual F# 2015   00322-40000-00000-AA889
Microsoft Visual F# 2015

Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA889
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   7.5.00830.1
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1   14.1.20624.0
ASP.NET and Web Tools 2015.1

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

JetBrains ReSharper Ultimate 2016.1.2    Build 105.0.20160522.80219
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.

Microsoft .NET Core Tools (Preview 2)   14.1.20624.0
Microsoft .NET Core Tools (Preview 2)

NuGet Package Manager   3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Visual Studio Tools for Universal Windows Apps   14.0.25420.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.2.0.628 (f4d4600)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   7.0.0.3 (89d9d60)
Visual Studio extension to enable development for Xamarin.Android.

Xamarin.iOS   9.99.5.54 (974ea0b)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 1 vga 2016-12-22 19:26:52 UTC
Hi, we are not able to repro this. If you can repro it, can you please attach MSI verbose logs when running the update? Thanks.
Comment 2 Jon Douglas [MSFT] 2016-12-22 19:54:47 UTC
Sure thing. I doubt I will be able to repro this again as I believe the build I had at the time was just error prone and caused this. However I'll keep this bug in NEEDINFO for searchability.
Comment 3 Jose Gallardo 2016-12-23 03:00:44 UTC
Hi Jon,
Do you mean making it not reproducible (which sounds more accurate) can make this less searchable?
Given that it seems like you cannot repro this again, I'm resolving this as Not_Reproducible, but if you effectively think it's more searchable if it's on NEED_INFO state, please feel free to switch it back to NEED_INFO.
Thanks