Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
http://imageshack.us/photo/my-images/714/hatadp.jpg[^]


What is the reason that the picture in the link of the error
Posted
Updated 23-Oct-11 20:46pm
v2
Comments
Prerak Patel 24-Oct-11 2:46am    
Just copy paste the translated error message and description in the question.

1 solution

Invalid cast exception means that an item you are trying to cast (and we can't see it) from one type to another is not convertible between the two types.

Don't post stupid little screen grabs: post the relevant code fragment into your question. That way we get to see the line causing the problem (indicate which it is, and add the actual error message) and some of the context of that line - in this case hopefully the type of the various objects involved, which is prewtty fundamental to solving your problem.

The more you help us, the more we can help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900