when i try to login i get this error please help me in fixing the problem anyone.
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
OK don't upload your HTML code. Error seems to be coming from ValidateUser(String userName, String passWord) method.
Do you know how to implement try..catch error handling? If not, I suggest you learn error handling. Search this site and place a try...catch in your code to get exact error message.
Cheers!
Mahesh ChandRank #1 · 393K pointsPosted Aug 26, 2010, 1:47 PM EDT
Try to put your code in a try..catch statement to get the exact error message. OR post some code that is getting this error.
MATT Mc4 pointsPosted Aug 26, 2010, 2:45 PM EDT
Mahesh ChandRank #1 · 393K pointsPosted Aug 26, 2010, 6:17 PM EDT
Do you know how to implement try..catch error handling? If not, I suggest you learn error handling. Search this site and place a try...catch in your code to get exact error message.
Cheers!