What is a first chance exception?
When an application is being debugged, the debugger gets notified whenever an exception is encountered At this point, the application is suspended and the debugger decides how to handle the exception. The first pass through this mechanism is called a "first chance" exception. Depending on the debugger's configuration, it will either resume the application and pass the exception on or it will leave the application suspended and enter debug mode. If the application handles the exception, it continues to run normally.
Does a first chance exception mean there is a problem in my code?
First chance exception messages most often do not mean there is a problem in the code. For applications / components which handle exceptions gracefully, first chance exception messages let the developer know that an exceptional situation was encountered and was handled.
There's nothing to be concerned with. This is normal behavior. So, if you have safely handled your code, you can turn this exception off by navigating to "Debug/Exceptions".
- From the Debug menu, select Exceptions.
- Click the "Add..." button on the bottom right.
- Choose "Common Language Runtime Exceptions" from the Type dropdown.
- Type "Microsoft.CSharp.RuntimeBinder.RuntimeBinderException" as the name.
- Click OK.
- The exception type will now appear on the list. Just deselect it.
Also, have a look at: http://blogs.msdn.com/b/davidklinems/archive/2005/07/12/438061.aspx