Object type cannot be converted to target type

N

news.microsoft.com

I got this error "Object type cannot be converted to target type" in my VB
Winforms application. When I click on it, it goes no where, how do I
troubleshoot this? Thank you.
 
N

news.microsoft.com

I don't know where the problem is since it does not point there, instead it
point to the 1st line of the .vb file, the file is 2k long which I don't
think anyone want to read it.
 
A

alantolan

try changing the exception handling behviour to see if you can localize
the problem

CTRL+ALT+E to show the exceptions screen

select the, 'Common Language Runtime Exceptions'

Change the, 'When the exception is thrown' setting to, 'Break into the
debugger'

This should bring you to where it is occurring. Hopefully.

If you are getting lots of exceptions (this will break even on handled
exceptions) then try to change the setting just before you invoke the
functionality that causes the error.

Alan.
 

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