Search code examples
visual-studiomulti-device-hybrid-apps

Visual Studio Crashes every time a project is opened


This happens with both TypeScript and JavaScript projects.
I am using Visual Studio Premium 2013 with Update 2

What Happens:

  • I create or open an existing Multi-Device project
  • I press 'Cancel' on the Windows 8.1 developer License dialog box
  • The project loads and I can see the files
  • Visual Studio crashes

Here is the crash log from Event Viewer

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)

I have re-installed and repaired the tools a few times, but to no avail. It is strange because I have it working at home (with Ultimate), but not at work. I also have all the third party applications needed installed.

Any help would be greatly appreciated, Thanks.

UPDATE

After doing some testing at home, I believe the issue may be being caused by the Windows Phone 8.1 Emulators. They were not installed on my machine at home, and I could load up projects without crashing, but after installing them, Visual Studio started crashing. Furthermore, I have tried uninstalling the emulators, projects still crash, but not as frequently. Hope this helps in any way.


Solution

  • My problem was slightly different but in my case VS crashed with this project template due to a specific Web Essentials version (https://github.com/madskristensen/WebEssentials2013/issues/1238). After updating to te latest (nightly) build VS stopped crashing while loading a Multi Device Hybrid App project.