• Answers
  • Web
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   4 years ago.
  • viewed 3646 times
Last answer posted 4 years ago by hmemcpy


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 4734 times
Last answer posted 3 years ago by Eran


Q:

Semaphore timeout in IIS logs

I get sc-win32-status 121 "The semaphore timeout period has been reached" in our IIS logs. sc-bytes shows 0 and time-taken is 20 ...
Submitted by nufsaid   2 years ago.
  • viewed 1001 times
Last answer posted 2 years ago by profitbob



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

How to print each function call during execution in WinDbg?

I am debugging an application written in VC++. How do i make WinDbg print the function name and all I am debugging an application written in VC++. How do i make WinDbg print the function name and all the values of the arguments... to the functions during execution of the debuged process?

WinDbg help

I am very excited about the windbg integration in SlickEdit. At the moment I have to load Visual set it to always use windbg instead of visual studio when you hit Debug. Second I tried running windbg We do plan on adding some Debug option for Visual Studio project to use windbg integration
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2010, Yedda Inc. and respective copyright owners · CC License