2016-08-12 117 views
0

突然(也許在VS運行時重新啓動我的電腦後)Visual Studio 2012無法打開許多以前工作的項目。
它也無法創建新項目。Visual Studio 2012已停止對某些項目的工作

的錯誤是很常見的和通用:
visual studio has stopped working

我想從這樣的one問題一一解決。我也重新安裝了VS 2012,但仍然沒有成功。

我發現的模式是,它無法創建一些項目類型,但其他人工作正常。

這些做工精細:

  • Windows窗體應用程序
  • 活動庫
  • ASP.NET MVC 3(空)
  • ASP.NET MVC 4(空)

這些失敗:

  • WPF應用程序
  • 控制檯應用程序
  • ASP.NET Web窗體應用程序
  • 類庫
  • 便攜式類庫
  • ASP.NET MVC 3(互聯網應用程序)
  • ASP.NET MVC 4(網頁API)
  • WCF服務應用

此外,更改框架的版本是沒有各色NCE。

任何想法可能是什麼問題?

編輯:事件日誌中顯示

Application: devenv.exe 
Framework Version: v4.0.30319 
Description: The process was terminated due to an unhandled exception. 
Exception Info: System.Globalization.CultureNotFoundException 
    at System.Globalization.CultureData.GetCultureData(Int32, Boolean) 
    at System.Globalization.CultureInfo.InitializeFromCultureId(Int32, Boolean) 
    at System.Globalization.CultureInfo..ctor(Int32, Boolean) 
    at System.Windows.Input.InputLanguageSource.get_CurrentInputLanguage() 
    at System.Windows.Input.InputLanguageManager.get_CurrentInputLanguage() 
    at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.ConstructCaretGeometry() 
    at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.UpdateCaret() 
    at Microsoft.VisualStudio.Text.Editor.Implementation.CaretElement.OnRender(System.Windows.Media.DrawingContext) 
    at System.Windows.UIElement.Arrange(System.Windows.Rect) 
    at System.Windows.ContextLayoutManager.UpdateLayout() 
    at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object) 
    at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork() 
    at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() 
    at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object) 
    at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object) 
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) 
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) 
    at System.Windows.Threading.DispatcherOperation.InvokeImpl() 
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object) 
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
    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 MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object) 
    at System.Windows.Threading.DispatcherOperation.Invoke() 
    at System.Windows.Threading.Dispatcher.ProcessQueue() 
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 
    at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) 
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) 
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) 
    at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) 
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) 

回答

0

的問題是,Windows正在使用「未知語言」默認情況下。這使Visual Studio崩潰。
如果我打開VS,改變語言,然後打開解決方案,它的工作原理。

This answer修復了「未知語言」問題。

相關問題