Visual Studio 2010 keeps crashing on startup even after it has been removed and reinstalled fully

StackOverflow https://stackoverflow.com/questions/23570069

  •  19-07-2023
  •  | 
  •  

Question

I have been struggling for days on this issue now and nothing seems to work.

I have had visual studio on my pc (windows xp pro) for 18 months and it has worked fine, but recently visual studio (2010) has started crashing before it fully opens up.

I have tried uninstalling vs2010 fully then reinstalling but it is just doing the same thing.

The error message recorded in event viewer is a devenv runtime .net error.

Here is the full error message.....

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)
Was it helpful?

Solution

If not installed download and install Microsoft Visual Studio 2010 Service Pack 1

If service pack is already installed, remove SP and VS.NET, reboot and perform clean installation of VS.NET and then SP.

Update:

Visual Studio (devenv.exe) could be run with different options

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

The /SafeMode switch will ensure you are launching the IDE without any additional addins. If the problem does not persist, chances are it's being caused by an extension. Use the extension manager and addin manager to enable/disable the extensions.

The /ResetSettings will restore default settings.

Run command propmt, navigate to VS.NET path and call devenv with one of the switches

CD C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\
devenv.exe /ResetSettings
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top