Weird Database error

Sliff

New Member
Hi,<BR><BR>I have just started getting the following bizarre error message when my asp.net page queries the Access DB:<BR><BR>Exception Details: System.InvalidCastException: The data value could not be converted for reasons other than sign mismatch or data overflow. For example, the data was corrupted in the data store but the row was still retrievable.<BR><BR>Not only do I have no idea what could be going on, I'm not really even sure what an InvalidCastException is, or what can cause it. Can anyone explain? Has anyone else encountered and solved this error?<BR><BR>Thanks,<BR><BR>JONYes, I have experencied this when building a dataset programtically. Post some code and I can take a look at it.Hi Chris,<BR><BR>Thanks for your interest, but I think (fingers crossed) I've finally tracked the bug down - I had an "objReader.GetString" for an integer field in the Database. Am now using "objReader.GetInt32" and so far the error is staying away...<BR><BR>JON
 
Back
Top