I am in the process of upgrading my application to Visual Studio 2005 and the
.Net 2.0 Framework. When I run my application in Debug, I get several hundred
lines of the following message in the Output View:
"A first chance exception of type 'System.InvalidCastException' occurred in
mscorlib.dll"
I am never informed of where the error is being thrown. I just get several
hundred lines of the same message. Any ideas of how to resolve this? The
application seems to be running fine, but I am worried that I just haven't
found the effects yet.
Thank you,
Susan
Nicholas Paldino [.NET/C# MVP] - 24 Sep 2007 20:18 GMT
Susan,
If your app isn't terminating, then it is more than likely something you
don't need to worry about, as there is an exception handler that is catching
the exception and processing it. See the following thread for an
explaination about what first chance exceptions are as well as how you can
track them down:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=142215&SiteID=1
Here is some more information about first chance exceptions as well:
http://blogs.msdn.com/davidklinems/archive/2005/07/12/438061.aspx

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
>I am in the process of upgrading my application to Visual Studio 2005 and
>the
[quoted text clipped - 11 lines]
> Thank you,
> Susan