i have an application which gives me error saying Specified cast is not valid when tried to run .exe from bin/Debug folder. I have no clue why it is happening since i run the app from visual studio 2010, it runs smooth. Any clues?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Found the solution. As per the comment from Damien_The_Unbeliever, the problem was with setting up the
AutoCompleteCustomSourcefor the textboxes. When i removed the Autocomplete code, the app started running smoothly.