Debug.Assert(): missing MsgBox (VS.NET 2003, C#)

Discussion in 'MCAD' started by Mark Newby, Apr 29, 2005.

  1. Mark Newby

    Mark Newby Guest

    when i try to use (in a web form)

    System.Diagnostics.Debug.Assert(false, "IT IS FALSE");

    i never get the MsgBox-style dialog box displaying when the assertion
    evals as false when run in debug mode. the project is located on the
    local pc (xp pro, sp2) and run in debug mode from local pc, so the
    dialog box should appear on local pc, right?

    the VS.NET Output Window shows correct "IT IS FALSE" output, etc.

    any ideas?

    mark (studying for 70-315)
     
    Mark Newby, Apr 29, 2005
    #1
    1. Advertisements

  2. Mark Newby

    G.V. Guest

    http://www.c-sharpcorner.com/Code/2003/Dec/DebugAssertInASPDotNet.asp

    G.V.

    : when i try to use (in a web form)
    :
    : System.Diagnostics.Debug.Assert(false, "IT IS FALSE");
    :
    : i never get the MsgBox-style dialog box displaying when the assertion
    : evals as false when run in debug mode. the project is located on the
    : local pc (xp pro, sp2) and run in debug mode from local pc, so the
    : dialog box should appear on local pc, right?
    :
    : the VS.NET Output Window shows correct "IT IS FALSE" output, etc.
    :
    : any ideas?
    :
    : mark (studying for 70-315)
     
    G.V., May 3, 2005
    #2
    1. Advertisements

  3. Mark Newby

    Mark Newby Guest

    thanks G.V., but that seems rather like re-inventing the wheel, no? the
    MS Training Kit book for 70-315 says the dialog box should be available
    from a web app running locally as i described.

    could it be because it's changed from .NET Framework 1.0 --> 1.1 perhaps?


    mark
     
    Mark Newby, May 5, 2005
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.