exception: cannot evaluate expression because debugging information

Last post 04-12-2009 3:17 PM by SurendraKishore. 1 replies.

Sort Posts:

  • exception: cannot evaluate expression because debugging information

    04-12-2009, 2:02 PM
    • Member
      point Member
    • ali_raza159
    • Member since 04-05-2009, 7:28 AM
    • Posts 2

    Hello I'm working on C# asp.net application. the problum which I'm facing is when I debug the code in side the class liberary I got following exception.

    cannot evaluate expression because debugging information has not been optimized away

    when I debug the get porting of the following code.

    public class AccountantCollection<T> : List<AccountantObject>
    {
            public new T this[int index]
            {
                get
                {
                    return this[index];
                }
                set
                {
                    this[index] = value;
                }
            }
        }

     

    I'd be very thank full  if some body can help me out with this.

  • Re: exception: cannot evaluate expression because debugging information

    04-12-2009, 3:17 PM
    • Participant
      1,754 point Participant
    • SurendraKishore
    • Member since 03-06-2009, 8:24 AM
    • Hyderabad
    • Posts 324

    There are two things that I would check. First, make sure that you are working with a debug build and not a release build of your project. And second, make sure that you are debugging in mixed mode (both managed and native) so that you can see all of the current call stack.

    MARK AS ANSWER IF MY POST HELPED YOU!
    THIS REDUCES TIME FOR OTHERS..!
Page 1 of 1 (2 items)