I have unusual (for me) problem with thrown exception. After exception is thrown application loops on it and doesn't exit.
if(!foundRemoteID) { throw new ArgumentOutOfRangeException( "value", "Remote ID was not found." ); } I have inserted brakepoint on "if(!foundRemoteID)" line but the program doesn't hit it at all after firs thrown exception. It just loops over and over on "throw new (..).
-I do not have try{} catch{} blocks at all at any level. -There is no loop that contains this code
I have even tried putting it into:
try { (..) } finally { Enviroment.Exit(1); } but finally{} block is never hit.
Other throw new (..) in this class is acting same way.
Am I missing something trivial?
UPDATE: Problem is not related to my project. I have just created a simple console application that has only
throw new FileNotFoundException(); In Main() method and problem persists.
I have already tried resetting VS2010 settings to default and it didn't help.

throwline and check call stack for any recursive call in your code. If no loop is wrapping your code, then must be a non-controlled recursive call.