madskristensen / WebEssentials2017

A Visual Studio extension
Other
90 stars 17 forks source link

Exception on Visual Studio startup - Impossible to load the type ITaskHandler #21

Open Thieum opened 7 years ago

Thieum commented 7 years ago

Installed product versions

Description

The extension throws an error on visual studio startup.

Steps to recreate

  1. Install or Update to version 1.5.31
  2. Start Visual Studio
  3. An error will pop

Current behavior

An error is logged to the activity log: ` Error VisualStudio

SetSite failed for package [InstallerPackage]Source: 'WebEssentials' Description: Impossible to load the type 'Microsoft.VisualStudio.TaskStatusCenter.ITaskHandler' à partir de l'assembly 'Microsoft.VisualStudio.Shell.Framework, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. System.TypeLoadException: Impossible de charger le type 'Microsoft.VisualStudio.TaskStatusCenter.ITaskHandler' à partir de l'assembly 'Microsoft.VisualStudio.Shell.Framework, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. at WebEssentials.InstallerService.RunAsync() at WebEssentials.InstallerPackage.<InitializeAsync>d__1.MoveNext() in C:\projects\webessentials2017\src\VSPackage.cs:line 37 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) at Microsoft.VisualStudio.Services.VsTask.GetResult()
<guid>{4F2F2873-BE87-4716-A4D5-3F3F047942C4}</guid>
<hr>80131522</hr>`

Expected behavior

No exception on startup.

fourpastmidnight commented 7 years ago

I am also experiencing this behavior:

When clicking the 'Web Essentials...' menu item in the Tools menu, I am presented with a VS dialog that indicates an error has occurred with this extension and to check the Activity Log.

Here's the error from the Activity Log:

SetSite failed for package [InstallerPackage]Source: 'WebEssentials' Description: Could not load type 
'Microsoft.VisualStudio.TaskStatusCenter.ITaskHandler' from assembly 
'Microsoft.VisualStudio.Shell.Framework, Version=15.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a'. System.TypeLoadException: Could not load type 
'Microsoft.VisualStudio.TaskStatusCenter.ITaskHandler' from assembly 
'Microsoft.VisualStudio.Shell.Framework, Version=15.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a'. at WebEssentials.InstallerService.RunAsync() at 
WebEssentials.InstallerPackage.<InitializeAsync>d__1.MoveNext() in 
C:\projects\webessentials2017\src\VSPackage.cs:line 37 --- End of stack trace from previous location 
where exception was thrown --- at 
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at 
Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_0.<<Microsoft-VisualStudio-Shell-
Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext() --- End of stack trace from 
previous location where exception was thrown --- at 
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at 
Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e) at 
Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck) at 
Microsoft.VisualStudio.Services.VsTask.GetResult()

I'm running Visual Studio 2017 Professional, version 15.0.26430.14