【问题标题】:Visual Studio Crashes every time a project is opened每次打开项目时 Visual Studio 都会崩溃
【发布时间】:2014-06-25 08:49:34
【问题描述】:

TypeScript 和 JavaScript 项目都会出现这种情况。
我正在使用带有更新 2 的 Visual Studio Premium 2013

会发生什么:

  • 我创建或打开一个现有的多设备项目
  • 我在 Windows 8.1 开发人员许可对话框中按“取消”
  • 项目加载完毕,我可以看到文件
  • Visual Studio 崩溃

这是来自事件查看器的崩溃日志

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
Stack:
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at MS.Internal.Threading.ExceptionFilterHelper.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 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 MS.Internal.Threading.ExceptionFilterHelper.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)

我已经重新安装并修复了几次工具,但无济于事。 这很奇怪,因为我让它在家里工作(使用 Ultimate),但不是在工作中。我还安装了所有需要的第三方应用程序。

任何帮助将不胜感激,谢谢。

更新

在家里做了一些测试后,我认为问题可能是由 Windows Phone 8.1 模拟器引起的。它们没有安装在我家的机器上,我可以加载项目而不会崩溃,但是在安装它们之后,Visual Studio 开始崩溃。此外,我尝试卸载模拟器,项目仍然崩溃,但不那么频繁。希望这对您有所帮助。

【问题讨论】:

  • 如果您不取消 W8.1 许可对话框,但如果您完成注册过程(除非您想发布应用程序是免费的)会怎样
  • @SteveB 好的,我会试一试。只需要和我的老板澄清一下。
  • @SteveB 我已经注册了许可证并接受了对话框,但它仍然崩溃。不过感谢您的建议:)
  • 关于您的更新,您可以尝试在您的计算机上禁用 Hyper-V 角色吗? (注意潜在的虚拟机丢失)
  • @SteveB 啊哈!这似乎有所帮助。虽然 Visual Studio 仍然崩溃,但如果我创建一个 Javascript 项目,然后转到文件 -> 最近的项目和解决方案,并加载混合项目,Visual Studio 不会崩溃。这在安装 Hyper-V 时不起作用

标签: visual-studio multi-device-hybrid-apps


【解决方案1】:

我的问题略有不同,但在我的情况下,由于特定的 Web Essentials 版本 (https://github.com/madskristensen/WebEssentials2013/issues/1238),VS 在此项目模板中崩溃了。更新到最新(每晚)构建后,VS 在加载多设备混合应用项目时停止崩溃。

【讨论】:

    【解决方案2】:

    我遇到了同样的问题:VS2013,当我创建新的多设备混合应用程序或打开现有应用程序时,Update2 崩溃。

    解决此问题的方法是卸载 Web Essentials 并按照此处的说明安装最新的 Web Essentials:http://vswebessentials.com/download

    【讨论】:

      猜你喜欢
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      • 2015-12-29
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-29
      相关资源
      最近更新 更多