2016-11-27 57 views
1

我在創建UWP應用程序時遇到問題。如果我右鍵點擊我的項目解決方案的資源管理器中,我得到以下錯誤在VS2015vs2015在解決方案資源管理器中右鍵單擊項目時出錯

An exception has been occurred while getting the visual studio framework version of the project.

按下OK鍵彈出再次帶來的錯誤窗口。這發生了大約5次,然後出現預期的菜單。

任何想法爲什麼?

事情我都試過了。

  • 重新創建項目。
  • 修復VS 2015年安裝
  • 移動到我的筆記本電腦項目。筆記本電腦 運行VS2017 RC和Windows 10

更新的最新內幕預覽1: 試了一下ezaspi提到的第一個評論,所有從日誌中的錯誤如下所示。

<entry> 
<record>523</record> 
<time>2016/11/30 16:56:52.502</time> 
<type>Error</type> 
<source>Extension Manager</source> 
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.WindowsStore&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\10\WINDOWS STORE SDK\...</description> 
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.0\METRO SDK\</path> 
</entry> 
<entry> 
<record>524</record> 
<time>2016/11/30 16:56:52.502</time> 
<type>Error</type> 
<source>Extension Manager</source> 
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.Desktop&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\10\DESKTOP SDK\...</description> 
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\DESKTOP SDK\</path> 
</entry> 
<entry> 
<record>525</record> 
<time>2016/11/30 16:56:52.502</time> 
<type>Error</type> 
<source>Extension Manager</source> 
<description>Extension will not be loaded because an extension with the same ID &apos;Microsoft.Windows.DevelopmentKit.WindowsStore&apos; is already loaded at C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\10\WINDOWS STORE SDK\...</description> 
<path>C:\PROGRAM FILES (X86)\COMMON FILES\MICROSOFT\EXTENSIONMANAGER\EXTENSIONS\MICROSOFT\WINDOWS KITS\8.1\WINDOWS STORE SDK\</path> 
</entry> 
<entry> 
<record>166</record> 
<time>2016/11/30 16:56:50.340</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.TeamExplorer.Navigation.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.TeamExplorer.Navigation.dll</path> 
</entry> 
<entry> 
<record>167</record> 
<time>2016/11/30 16:56:50.344</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.Build.Controls.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.Build.Controls.dll</path> 
</entry> 
<entry> 
<record>168</record> 
<time>2016/11/30 16:56:50.349</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.CodeReview.Controls.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.CodeReview.Controls.dll</path> 
</entry> 
<entry> 
<record>169</record> 
<time>2016/11/30 16:56:50.381</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.CodeReview.Components.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.CodeReview.Components.dll</path> 
</entry> 
<entry> 
<record>170</record> 
<time>2016/11/30 16:56:50.386</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.Git.Provider.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.Git.Provider.dll</path> 
</entry> 
<entry> 
<record>171</record> 
<time>2016/11/30 16:56:50.390</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.Git.Controls.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.Git.Controls.dll</path> 
</entry> 
<entry> 
<record>172</record> 
<time>2016/11/30 16:56:50.394</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.Build.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.Build.dll</path> 
</entry> 
<entry> 
<record>173</record> 
<time>2016/11/30 16:56:50.398</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.dll</path> 
</entry> 
<entry> 
<record>174</record> 
<time>2016/11/30 16:56:50.402</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.ContextManagement.Package.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.ContextManagement.Package.dll</path> 
</entry> 
<entry> 
<record>175</record> 
<time>2016/11/30 16:56:50.407</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.dll</path> 
</entry> 
<entry> 
<record>176</record> 
<time>2016/11/30 16:56:50.411</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.VersionControl.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.VersionControl.dll</path> 
</entry> 
<entry> 
<record>177</record> 
<time>2016/11/30 16:56:50.416</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.TeamFoundation.VersionControl.Controls.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.TeamFoundation.VersionControl.Controls.dll</path> 
</entry> 
<entry> 
<record>178</record> 
<time>2016/11/30 16:56:50.420</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.Workspaces.Contracts, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\0UHH1GTS.5EQ\TMLanguage.dll</path> 
</entry> 
<entry> 
<record>179</record> 
<time>2016/11/30 16:56:50.425</time> 
<type>Error</type> 
<source>Microsoft.VisualStudio.CommonIDE.ExtensibilityHosting.VsShellComponentModelHost</source> 
<description>Still unable to load MEF component DLL: Could not load file or assembly &apos;Microsoft.VisualStudio.TeamFoundation.SharePointReporting.dll&apos; or one of its dependencies. The system cannot find the file specified.</description> 
<path>C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\EXTENSIONS\R0KXUUR5.OBE\Microsoft.VisualStudio.TeamFoundation.SharePointReporting.dll</path> 

`

+0

您是否嘗試過在啓動時檢查日誌?見例 http://blog.masterdevs.com/debugging-a-visual-studio-crash/ – ezaspi

+0

試過你說什麼,並在上面添加。 – Gaz83

回答

9

我有同樣的問題。你會不會碰巧使用SyncFusion控件?在對我的問題進行故障診斷並做了一些和你一樣的事情(修復.Net,SDK,Visual Studio)後,我想到了更多的錯誤。儘管它很神祕(並且英文差,但「發生異常」),但這些都是線索,它可能是您通過擴展安裝的任何框架。

我也有另一條線索,這個問題開始發生在幾個星期前,我周圍更新了我的SyncFusion控制到最新版本的時間。

所以,我去工具>擴展和更新。我去了Installed> All,找到了所有的SyncFusion項目(有幾個),並全部禁用了它們。禁用它們後,必須重新啓動Visual Studio。之後,問題就消失了!

這是一種解決方法了。與此同時,我在此問題上使用SyncFusion提供支持憑單。當我得到他們的答覆時,我肯定會更新這個線程。同時,我可以嘗試啓用每一個,一次一個,看看究竟是哪一個導致這個問題,儘管它可能是其中的幾個。

如果您不使用SyncFusion,我建議您通過瀏覽您的擴展程序並禁用您添加的任何內容,從最新的附加功能開始,特別是在您開始擁有問題直到你找到罪魁禍首。

希望這會有所幫助!

編輯 - 消除過程(或更好,每次再次啓用一個控件)我發現只有一個SyncFusion控件是我的例子中的罪魁禍首。這是Web轉換和遷移。除此之外的所有其他人都已啓用,並且問題沒有發生。好消息是,如果你不需要這種控制,那麼可以把它禁用。不過,我也會更新SyncFusion。

編輯2 - 我收到了Syncfusion的迴應。他們確認並解決了這個問題。所以,如果你不需要這種控制,就把它禁用。如果你需要它,這裏是修復。

通過更新於2016年12月2日上午01時15分55秒:卡尼莫扎Pandian [Syncfusion]

喜邁克爾,

很抱歉給您帶來的不便。

問題,同時檢測未通過Syncfusion網絡轉換和遷移擴展支持的項目框架版本發生。現在,我們有固定的問題,你可以從這裏獲取更新Syncfusion網絡轉換和移動分機:

http://www.syncfusion.com/downloads/support/directtrac/168382/ze/Project_Conversion-2034375715  

執行以下步驟重新安裝更新Syncfusion網絡轉換和移動擴展。

  1. 提取下載的zip文件。

  2. 從下面的位置刪除現有的項目轉換目錄。

C:\程序文件(x86)\ Syncfusion \本質工作室\ 14.4.0.15 \公用事業\擴展

  • 現在,複製所提取的項目轉換目錄到上述位置。然後從下面的知識庫執行的步驟來安裝更新Syncfusion網絡轉換和移動擴展到Visual Studio。

      https://www.syncfusion.com/kb/4799/how-to-install-the-syncfusion-vsix-packages-manually   
    
  • 注:此問題已得到修復,將被包含在我們Syncfusion 2016卷4 SP1版本。

    問候,
    卡尼莫扎K.P.

    +0

    是的,我正在使用Syncfusion控件!我將檢查Web轉換控件並嘗試您今晚說的話。 – Gaz83

    +0

    @ Gaz83好消息,它應該解決您的問題,然後!另外,我剛剛更新了我的答案,請參閱編輯2,我收到了Syncfusion的回覆和修復。如果這適用於您,請確保標記爲答案。 –

    +0

    是的,對我來說也是Syncfusion。我試圖更新至2016第4卷SP 1,它似乎顯示在控制面板14.4.0.20版本,三個Syncfusion擴展是/是14.4.0.15版本與2017年1月6日的安裝日期,如圖VS.我今天在9號安裝了SP1。我認爲擴展的安裝日期已經更新。禁用3個Syncfusion擴展解決了這個問題。 –

    相關問題