Originated from
Advanced .NET Debugging

Getting WinDbg to break on encountering the "Ambiguous match found" exception.

This question is related to Eran Sandler's post on the "Ambiguous match found" exception encountered in ASP.NET 

I tried Eran Sandler's suggestion on using WinDbg to help find out exactly which variable is a duplicate but after attaching to the w3wp.exe process and then getting the "Ambiguous match found" exception to happen, windbg doesn't break. Could there be something I'm doing wrong with WinDbg?

Thanks

PS: I posted this same question on Eran's blog but after a recent post by Eran, I thought it would be better to ask the question here.


Share Send to a friend Watch Report
 
 

2 Posted Answers
Order by

 
207 helpful answers

They're coming to take me away, Ha-haaa!

Advanced .NET Debugging Blog

My personal blog

Sometimes in WinDbg managed exceptions are not enabled, so the debugger won't break on them.

Unfortunately I'm not near a computer with WinDbg, so I'm doing this from memory. In one of the menus (I think Debug) there is something that is called Exceptions or Filters or something.

It should open a list of all available exception type. For Windows, all managed exceptions looks the same, so you'll need to enable the "CLR Exceptions" option and then it will break on all managed exceptions (some of which might not be the exception you are looking for).

From there you can continue with what I've written in my post

You can look in WinDbg help about enabling and disable certain types of exceptions.

If you still need help and it doesn't help you I will be around a WinDbg and a normal computer in about two weeks and I'll help you a bit more Cool.

Posted 2006-10-06T08:36:21Z
Eran was invited by Yedda to answer this question.

Helpful?(2)
Rated as Best Answer
 

Thanks.  That worked and WinDbg was able to break at one of a number of CLR exceptions.  

Posted 2006-10-06T15:13:59Z

Sign in to participate

Got an answer for kipphoward? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

WinDbg and C# Applications

What is WinDbg and can I use it to debug applications written in C#?
Submitted by kazabubu   3 years ago.
  • viewed 3433 times
Last answer posted 3 years ago by hmemcpy


Q:

Using SOS from within Visual Studio

I sometimes use WinDbg and the SOS extension to debug my applications. There is a lot of good and useful functionality like seeing ...
Submitted by d01   3 years ago.
  • viewed 1241 times
Last answer posted 3 years ago by Eran


Q:

SOS.DLL for .NET 2.0 does not support -gen for !dumpheap

The SOS.DLL that I have for .NET 2.0 and WinDbg 6.6.7.5 does not support the -gen argument for the !dumpheap command. What is ...
Submitted by greenaj   3 years ago.
  • viewed 4555 times
Last answer posted 3 years ago by Eran



» More...

Explore Related Posts in Forums

windbg debugger !uniqstack clr equivalent

I am trying to find the windbg command that will show all the CLR stacks similar to the way are looking for? If not, I'd try to write a macro in windbg that will call !CLRStack for each thread I am trying to find the windbg command that will show all the CLR stacks similar to the way !uniqstack & ~* k work. Is there...

Biggest windbg pet peeve

What is your biggest pet peeve related to the windbg debugger from microsoft? (note: I actually really like windbg if I ignore the unpolished UI.) from inside windbg. At least there's the Alt-1 workaround. How insanely slow .kdfiles copies new

windbg private symbols

And executing "lm v m MyModule" in windbg shows that my module's private symbols are there: "f7677000 that, but I'm new to windbg, so I don't know what I'm missing. Any information would be appreciated. I'm having some difficulty debugging a crash dump for my driver. I have set my symbol file path, and executing "lm v m MyModule...
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
ADVERTISEMENT
AOL Autos Q&A is powered by Yedda an AOL Company
Copyright © 2006-2009, Yedda Inc. and respective copyright owners