2015-07-20 177 views
4

如何修復Visual Studio 2015企業版以正確安裝和工作?Visual Studio 2015企業在啓動,卸載和修復時崩潰

在安裝過程中,安裝Java SE時出現問題。這是可選的,所以我沒有想到它的任何事情。我重新啓動了我的電腦。現在,無論何時我嘗試打開Visual Studio 2015,重新安裝或卸載,我都會簡要地看到該徽標,然後消失。

我深入到事件查看器中,從Windows錯誤報告中找到指向以下文件夾中的日誌的消息。

C:\用戶\ {我} \應用程序數據\本地的\ Temp \ dd_vs_enterprise_20150720190843

它好像它是有困難的創建視圖。我已經複製了以下日誌的一部分。

[261C:12FC][2015-07-20T19:08:52]i000: MUX: Detect Completed 
[261C:12FC][2015-07-20T19:08:52]i000: MUX: Wait for View to be loaded 
[261C:1860][2015-07-20T19:08:52]i000: MUX: Detect Completed, now create view 
[261C:1860][2015-07-20T19:08:52]e000: MUX: ERROR: The type initializer for 'System.Windows.Media.FontFamily' threw an exception. 
[261C:1860][2015-07-20T19:08:52]e000: MUX: Stack: at System.Windows.Media.Typeface..ctor(FontFamily fontFamily, FontStyle style, FontWeight weight, FontStretch stretch) 
    at MS.Internal.Text.DynamicPropertyReader.GetTypeface(DependencyObject element) 
    at MS.Internal.Text.TextProperties.InitCommon(DependencyObject target) 
    at MS.Internal.Text.TextProperties..ctor(FrameworkElement target, Boolean isTypographyDefaultValue) 
    at System.Windows.Controls.TextBlock.GetLineProperties() 
    at System.Windows.Controls.TextBlock.EnsureTextBlockCache() 
    at System.Windows.Controls.TextBlock.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) 
    at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.Control.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.StackPanel.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) 
    at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) 
    at System.Windows.Controls.Grid.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.Border.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.Grid.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.Border.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.Grid.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint) 
    at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.Decorator.MeasureOverride(Size constraint) 
    at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Controls.Border.MeasureOverride(Size constraint) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Window.MeasureOverrideHelper(Size constraint) 
    at System.Windows.Window.MeasureOverride(Size availableSize) 
    at System.Windows.FrameworkElement.MeasureCore(Size availableSize) 
    at System.Windows.UIElement.Measure(Size availableSize) 
    at System.Windows.Interop.HwndSource.SetLayoutSize() 
    at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value) 
    at System.Windows.Interop.HwndSource.set_RootVisual(Visual value) 
    at System.Windows.Window.SetRootVisual() 
    at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight) 
    at System.Windows.Window.CreateSourceWindowImpl() 
    at System.Windows.Window.SafeCreateWindow() 
    at System.Windows.Window.ShowHelper(Object booleanBox) 
    at System.Windows.Window.Show() 
    at Microsoft.Devdiv.Bootstrapper.ManagedUx.RunUI(ViewModelCommonUi viewModel) 
    at Microsoft.Devdiv.Bootstrapper.ManagedUx.InternalRun() 
    at Microsoft.Devdiv.Bootstrapper.ManagedUx.Run() 
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
    at System.Threading.ThreadHelper.ThreadStart() 
[261C:1860][2015-07-20T19:08:52]e000: MUX: Exception: Info: InnerException: Info: 
[261C:1860][2015-07-20T19:08:52]e000: MUX: ERROR: The type initializer for 'MS.Internal.FontCache.Util' threw an exception. 
[261C:1860][2015-07-20T19:08:52]e000: MUX: Stack: at System.Windows.Media.FontFamily.PreCreateDefaultFamilyCollection() 
    at System.Windows.Media.FontFamily..cctor() 
[261C:1860][2015-07-20T19:08:52]i000: MUX: Metrics: ShouldSendData=True 
[261C:1860][2015-07-20T19:08:52]i000: MUX: Permission to upload: Yes 
[261C:1860][2015-07-20T19:08:52]i000: MUX: Preparing to serialize data. 
[261C:1860][2015-07-20T19:08:52]i000: MUX: Data serialized. 
[261C:1860][2015-07-20T19:08:52]i000: MUX: Number of SQM File queued: 1 
[261C:1860][2015-07-20T19:09:14]i000: MUX: SQM sent: True 
[261C:1860][2015-07-20T19:09:14]i000: Setting string variable 'CEIPConsent' to value '' 
[261C:1860][2015-07-20T19:09:14]i000: Setting string variable 'SqmOption' to value '' 
[261C:1860][2015-07-20T19:09:14]i000: MUX: Metrics: Configuration State 
+0

對我好固定在VS 2015年親 – Richard

回答

6

相當多的研究之後,我發現,引起了我的安裝和維修問題的兩個問題。

字體在註冊表中的字體位置怪異註冊表

  1. Open the registry
  2. 轉到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontCache
  3. 有我的情況特殊字體,MT額外(TTF),其中有一個漫長的路徑,而不是其他字體的文件名。
  4. 我改變了字體名稱,只是文件名MTEXTRA.TFF
  5. 重新啓動我的電腦

Registry Screenshot

PATH超過2048個字符

  1. 我檢查了路徑尋找它長於2048個字符
  2. 這是一個known issue(即使難以診斷)
  3. Removed certain entries使其下降到不足2048個字符
  4. 重新啓動的

完成這兩個步驟後,我能夠從Programs and Features修復在控制面板中並且具有工作安裝。

+1

我還發現,在註冊表HKEY_LOCAL_MACHINE \ SOFTWARE \微軟\的Windows NT \ CURRENTVERSION \字體的字體名字很長(259個字符)。在註冊表中刪除此字體適用於我。 –

2

我有什麼似乎是同樣的問題,這是我做的:

  1. 清除一切出於%TEMP%,這在我的機器上是「C:\用戶[用戶名] \ AppData \ Local \ Temp「
  2. 重新啓動我的機器。
  3. 重新啓動後,將其餘的鎖定文件清除出%temp%(這可能是重啓後的一個步驟,但這是我進入的順序)。
  4. 刪除我的Android SDK文件夾中安裝的最高版本的所有「Roboto」字體。對我來說,目前最高版本爲Android的17: C:\用戶[用戶名] \應用程序數據\本地\的Android \ Android的SDK \平臺\ Android的17 \ DATA \字體

注意「的Roboto -Bold.ttf「字體在重啓後仍然在使用,所以我沒有刪除它。但問題消失了,其他所有人都被刪除了。

希望幫助...

19

我有一個類似的問題,並嘗試其他解決方案無濟於事。我甚至修復了安裝,但沒有任何效果。我能夠通過重置所有用戶設置來解決它。

導航到devenv.exe文件;對我來說這是在C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\

然後打開命令提示符存在並運行:

devenv.exe /ResetSettings

+0

它可能有助於指定您應該在cmd窗口中運行它 – raz0r

+0

我創建了一個VBScript來自動執行該操作,[這裏是](http://sh.st/PTfyq) –

+0

真棒,謝謝啊N –

相關問題