It could be an issue. View the "source" of your code if the OleDBAdapter is not visible in design view, and remove any reference to the adapter. Also check the web.config to see if there is any rogue code and remove it. Invalid cast means you are using "As String" or "As Boolean" incorrectly.
In VS look for any red squigglies that might point to an error in your code and correct them accordingly.
Leave a comment: