【发布时间】:2016-12-19 19:35:35
【问题描述】:
突然(可能在 VS 运行时重新启动我的 PC 后)Visual Studio 2012 无法打开许多以前工作的项目。
它也无法创建新项目。
我尝试了像one 这样的问题的所有解决方案。我还重新安装了 VS 2012,但仍然没有成功。
我发现的模式是它无法创建某些项目类型,但其他的工作正常。
这些工作正常:
- Windows 窗体应用程序
- 活动库
- ASP.NET MVC 3(空)
- ASP.NET MVC 4(空)
这些失败:
- WPF 应用程序
- 控制台应用程序
- ASP.NET Web 表单应用程序
- 类库
- 可移植类库
- ASP.NET MVC 3(互联网应用程序)
- ASP.NET MVC 4 (Web API)
- WCF 服务应用程序
此外,更改框架版本没有任何区别。
知道可能是什么问题吗?
编辑:正在显示事件日志
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)
【问题讨论】:
标签: c# visual-studio visual-studio-2012