locked
Metro app cannot debug in Visual Studio 11 beta.

    Question

  • Hi, I can't debug when I open any Metro app. The error happened in local and simulator debug scenario.

    My development environment: using C#, Win8 CP, Visual Studio 11 beta, and non-Virtual Box scenario.

    The error message is the following picture.

    The error code (Debug->Windows->Output) is the following message.

    0xC0000420 
    STATUS_ASSERTION_FAILURE


    Using "ctrl + F5" is OK, and debugging can work when I use WPF.

    Does any method fix the problem? Thanks.

    Wednesday, April 25, 2012 11:19 AM

Answers

  • After updating "Win 8 Release Preview +  VS2012 RC",  I can use debugging with Metro app.


    • Marked as answer by GraceChu Monday, June 04, 2012 9:48 AM
    Monday, June 04, 2012 9:47 AM

All replies

  • Hello Grace,

    Can you try the following to see if we can get more info on the assertion failure?

    Right click on the metro application project node in solution explorer, choose properties

    go to the debug tab and check the box "Enable unmanaged code debugging"

    Go to Debug | Exceptions on the menu, expand the node "Win32 Exceptions", look for the 0xc0000420 Assertion Failed error, check the box under Thrown if it is not already checked.

    Start debugging.

    Do we break in the debugger on the exception, if so, what does the callstack look like?

    Also does this happen with any Metro style C# application i.e. File | New Project | C# | Windows Metro Style, Blank Application.  Start debugging?

    much appreciated,

    mike

    Thursday, April 26, 2012 10:42 PM
    Moderator
  • Hello Mike

    Thank you for your reply.

    I follow your steps and get the following message from my Metro app and blank app.

    <my Metro app>

    <blank app>

    Friday, April 27, 2012 3:52 AM
  • Hi Grace,

    when it breaks in the debugger, could you get the callstack from the callstack window (debug | Windows | call stack)?  We want to see where that assertion failed is bubbling up from.

    much appreciated,

    mike 

    Monday, April 30, 2012 7:32 PM
    Moderator
  • Hi Mike

    I get the following callstack from blank app.

    =======================

    > KernelBase.dll!74dd2287()
      [Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
      KernelBase.dll!74dcc1dd()
      combase.dll!75db46b9()
      combase.dll!75db4118()
      Windows.UI.Xaml.dll!509a1098()
      Windows.UI.Xaml.dll!509a1060()
      Windows.UI.Xaml.dll!509951ea()
      Windows.UI.Xaml.dll!5099517e()
      Windows.UI.Xaml.dll!509954e7()
      Windows.UI.Xaml.dll!50979306()
      Windows.UI.Xaml.dll!50917b01()
      Windows.UI.Xaml.dll!50979378()
      Windows.UI.Xaml.dll!50cf2b3d()
      Windows.UI.Xaml.dll!50cf2be1()
      Windows.UI.Xaml.dll!50cf2d3f()
      Windows.UI.Xaml.dll!50cf2d81()
      Windows.UI.Xaml.dll!50cf32f9()
      Windows.UI.Xaml.dll!50cf3321()
      Windows.UI.Xaml.dll!50cf342f()
      Windows.UI.Xaml.dll!50cf3471()
      Windows.UI.Xaml.dll!50cf1833()
      Windows.UI.Xaml.dll!50cf1ff1()
      Windows.UI.Xaml.dll!509d3203()
      Windows.UI.Xaml.dll!509d3241()
      Windows.UI.Xaml.dll!50cc1e6b()
      Windows.UI.Xaml.dll!50cc3c2c()
      Windows.UI.Xaml.dll!50cc33de()
      Windows.UI.Xaml.dll!509cca30()
      Windows.UI.Xaml.dll!509b5c8e()
      Windows.UI.Xaml.dll!5091b2c3()
      Windows.UI.Xaml.dll!50a1dd37()
      Windows.UI.Xaml.dll!50c982ac()
      Windows.UI.Xaml.dll!509f1553()
      Windows.UI.Xaml.dll!50a0f049()
      Windows.UI.Xaml.dll!5125b2fa()
      Windows.UI.Xaml.dll!51182c19()
      Windows.UI.Xaml.dll!50a0f049()
      Windows.UI.Xaml.dll!508d02c7()
      twinapi.dll!6f49cae8()
      twinapi.dll!6f49c85c()
      twinapi.dll!6f49c8d4()
      SHCore.dll!76130d58()
      kernel32.dll!77661d17()
      ntdll.dll!77710c25()
      ntdll.dll!77710bfb()

    Wednesday, May 02, 2012 1:23 AM
  • Hello Mike,

    Any update about the problem?  Thank you very much!

    Tuesday, May 08, 2012 8:29 AM
  • I have the same problem, no way to develop metro apps because cannot run them. The event log gets this application error:

    Wednesday, May 23, 2012 12:35 PM
  • After updating "Win 8 Release Preview +  VS2012 RC",  I can use debugging with Metro app.


    • Marked as answer by GraceChu Monday, June 04, 2012 9:48 AM
    Monday, June 04, 2012 9:47 AM