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.


Would you like to answer or comment?

Sign up for a free account, or sign in (if you're already a member).
  • 2631 views
Share Send to a friend Watch Report
 
 

2 Posted Answers

Order by
 
532 thumbs up

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 3 years ago ( permalink )
In reply to kipphoward's question
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 3 years ago ( permalink )
In reply to Eran's answer



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:


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 2960 times

Last answer posted 3 years ago by hmemcpy


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 1094 times

Last answer posted 3 years ago by Eran


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 4211 times

Last answer posted 3 years ago by Eran



» More...

Explore Related Posts in Forums

How to use WinDbg to analyze the crash dump for VC++ application.

Hi Any one knows how to use the windbg for analyzeing dump file. Please share the info... to analyze crash dump using windbg. Thanks, Haranadh

Can I run a .NET garbage collection from WinDbg?

From WinDbg, so that I can focus on the actual memory allocation? I don't think there is any way to run a .NET garbage collection from WinDbg, but I also...

Can I display GUID in windbg?

To CoCreateInstance. I am not sure how to display GUID in windbg. Any pointers for ... cause windbg to stall for a few seconds as it searches every module for something called...
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License