0

我已经在这个问题上苦苦挣扎了好几天,似乎没有任何效果。

我在我的电脑(Windows XP Pro)上安装了 Visual Studio 18 个月,它运行良好,但最近 Visual Studio(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)
4

1 回答 1

1

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

如果已安装服务包,请删除 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
于 2014-05-09T17:03:43.547 回答