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. Advertising

  2. Mark Newby

    G.V. Guest

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

    G.V.

    "Mark Newby" <> wrote in message
    news:%...
    : 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. Advertising

  3. Mark Newby

    Mark Newby Guest

    G.V. wrote:
    > http://www.c-sharpcorner.com/Code/2003/Dec/DebugAssertInASPDotNet.asp
    >
    > G.V.
    >
    > "Mark Newby" <> wrote in message
    > news:%...
    > : 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?


    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. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Newby
    Replies:
    0
    Views:
    406
    Mark Newby
    Apr 29, 2005
  2. Mark Newby
    Replies:
    0
    Views:
    479
    Mark Newby
    May 5, 2005
  3. philbo30

    Disable PIM Assert Process

    philbo30, Dec 20, 2007, in forum: Cisco
    Replies:
    6
    Views:
    1,953
    stephen
    Dec 21, 2007
  4. Guest

    Assert.IsTrue()???

    Guest, Dec 8, 2004, in forum: MCAD
    Replies:
    2
    Views:
    1,528
    Amrish Soni
    Dec 13, 2004
  5. RichA
    Replies:
    6
    Views:
    417
    Kennedy McEwen
    Jan 24, 2010
Loading...

Share This Page