Invalid cast expection but can't find where error is

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top