系列

2018年9月30日 星期日

發布時發生錯誤 System.TypeLoadException: Method 'GetDefaultFactoryPriority' in type


發布時發生錯誤 System.TypeLoadException: Method 'GetDefaultFactoryPriority' in type



2018/9/30 04:40:10
System.TypeLoadException: Method 'GetDefaultFactoryPriority' in type 'Microsoft.VisualStudio.Web.MicrosoftAzure.AzureFunctions.Publish.ImportFunctionProfileVisualFactory' from assembly 'Microsoft.VisualStudio.Web.MicrosoftAzure.AzureFunctions, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' does not have an implementation.
   於 Microsoft.VisualStudio.Web.MicrosoftAzure.AzureFunctions.Publish.ImportFunctionProfileVisualFactoryProvider.CreateFactory(IPublishServiceProvider provider)
   於 Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.LoadFactories(IPublishServiceProvider serviceProvider, IVsHierarchy hierarchy)
   於 Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel..ctor(Dispatcher dispatcher, IAsyncServiceProvider vsServiceProvider, IPublishServiceProvider serviceProvider, IVsHierarchy hierarchy)
   於 Microsoft.VisualStudio.ApplicationCapabilities.Publish.Provider.DefaultPublishTabProvider.CreateViewAsync(IVsHierarchy project, IAsyncServiceProvider serviceProvider, CancellationToken cancellationToken)
   於 Microsoft.VisualStudio.ApplicationCapabilities.Publish.Provider.ManagedPublishProvider.<CreateViewAsync>d__3.MoveNext()
錯誤訊息



方法一(成功)

搜尋 visual studio installer



修改



這裡比較特別,什麼都不用異動安裝的模組,直接按下修改,然後你的VS2017就會復活了。



方法2 (失敗)




啟動VS2017 > 工具 > Clear MEF Component Cache



清除確認




參考:


沒有留言:

張貼留言