即使在完全删除并重新安装后,Visual Studio 2010仍会在启动时崩溃

时间:2014-05-09 16:52:46

标签: visual-studio-2010 windows-xp-sp3

我现在已经在这个问题上苦苦挣扎了好几天,似乎没什么用。

我的电脑上有视觉工作室(Windows XP专业版)18个月,它运行良好,但最近视觉工作室(2010)在完全打开之前就开始崩溃了。

我已经尝试完全卸载vs2010然后重新安装,但它只是在做同样的事情。

事件查看器中记录的错误消息是devenv运行时.net错误。

以下是完整的错误消息.....

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
Stack:
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32, IntPtr)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32, IntPtr)
   at MS.Internal.Text.TextInterface.Native.Util.ConvertHresultToException(Int32)
   at MS.Internal.Text.TextInterface.FontCollection.FindFamilyName(System.String, UInt32     ByRef)
   at MS.Internal.FontCache.FamilyCollection.LookupFamily(System.String,     System.Windows.FontStyle ByRef, System.Windows.FontWeight ByRef, System.Windows.FontStretch     ByRef)
   at     System.Windows.Media.FontFamily.LookupFontFamilyAndFace(MS.Internal.FontCache.CanonicalFontF    amilyReference, System.Windows.FontStyle ByRef, System.Windows.FontWeight ByRef,     System.Windows.FontStretch ByRef)
   at System.Windows.Media.FontFamily.FindFirstFontFamilyAndFace(System.Windows.FontStyle     ByRef, System.Windows.FontWeight ByRef, System.Windows.FontStretch ByRef)
   at System.Windows.Media.Typeface.ConstructCachedTypeface()
   at System.Windows.Media.Typeface.get_CachedTypeface()
   at     MS.Internal.TextFormatting.SimpleTextLine..ctor(MS.Internal.TextFormatting.FormatSettings,     Int32, Int32, System.Collections.ArrayList, Int32 ByRef, Int32 ByRef)
   at     MS.Internal.TextFormatting.SimpleTextLine.Create(MS.Internal.TextFormatting.FormatSettings,     Int32, Int32)
   at     MS.Internal.TextFormatting.TextFormatterImp.FormatLineInternal(System.Windows.Media.TextForm    atting.TextSource, Int32, Int32, Double,     System.Windows.Media.TextFormatting.TextParagraphProperties,     System.Windows.Media.TextFormatting.TextLineBreak,     System.Windows.Media.TextFormatting.TextRunCache)
   at     MS.Internal.TextFormatting.TextFormatterImp.FormatLine(System.Windows.Media.TextFormatting.T    extSource, Int32, Double, System.Windows.Media.TextFormatting.TextParagraphProperties,     System.Windows.Media.TextFormatting.TextLineBreak,     System.Windows.Media.TextFormatting.TextRunCache)
   at System.Windows.Controls.TextBlock.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement,         System.Windows.Size)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at         Microsoft.Internal.VisualStudio.PlatformUI.VisualTargetPresentationSource.set_RootVisual(Sys    tem.Windows.Media.Visual)
   at Microsoft.Internal.VisualStudio.PlatformUI.WorkerThreadElementContainer.UIWorkerThreadStart(    System.Object)
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,         System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext,             System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart(System.Object)

1 个答案:

答案 0 :(得分:1)

如果未安装,请下载并安装Microsoft Visual Studio 2010 Service Pack 1

如果已经安装了Service Pack,请删除SP和VS.NET,重新启动并执行VS.NET的干净安装,然后执行SP。

更新:

Visual Studio(devenv.exe)可以使用不同的选项运行

/ResetSettings  Restores the IDE's default settings, optionally resets to
                the specified VSSettings file.
/SafeMode       Launches the IDE in safe mode loading minimal windows.

/ SafeMode开关将确保您在没有任何其他插件的情况下启动IDE。如果问题仍未存在,则可能是由扩展引起的。使用扩展管理器和插件管理器启用/禁用扩展。

/ ResetSettings将恢复默认设置。

运行命令propmt,导航到VS.NET路径并使用其中一个开关调用devenv

CD C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\
devenv.exe /ResetSettings