First Chance Exception

T

Tommy

I get this message in the output window of my app I just converted from VS
2003 to 2005. It's a VB.Net app.

A first chance exception of type 'System.InvalidCastException' occurred in
Microsoft.VisualBasic.dll

How can I find these exceptions so I can take care of them? They do not show
up in the errors or warnings window.

Thanks
Tommy
 
D

Derrick Coetzee [MSFT]

Tommy said:
A first chance exception of type 'System.InvalidCastException'
occurred in Microsoft.VisualBasic.dll

How can I find these exceptions so I can take care of them? They do
not show up in the errors or warnings window.

Hi Tommy. This (somewhat misleading) message does not indicate any real
error. It's just an exception that's occurring and being handled correctly
within the VB runtime. Visual C++ programmers often see dozens of these. If
the error required action from you, the debugger would take you to the
location where the error is occurring and show you the error information.
Here's a similar question at another forum:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=200288&SiteID=1

I hope this helps.
 

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

Top