Timestamp generating InvalidCastException

Thread is closed for posting
2 posts, 0 answers
  1. Jonathan Simmons
    Jonathan Simmons avatar
    110 posts
    Member since:
    Jun 2005

    Posted 02 Jun 2010 Link to this post

    Hi, I have a table with a timestamp column (Location.ts) and used the new designer in VS2010 to create a model. When binding a treeview to the object using an objectdatasource, the following error message is displayed:

    [DataStoreException: Error reading field TRModel.Location.ts from ResultSet: System.InvalidCastException: Specified cast is not valid.
       at Telerik.OpenAccess.RT.Adonet2Generic.Impl.ResultSetImp.getLong(Int32 columnIndex)
       at OpenAccessRuntime.Relational.ResultSetParams.ReadLongNullable(ResultSetParams& p)
       at OpenAccessRuntime.Relational.RelationalGenericState.getFieldData(ResultSetParams& para)...

    If I remove the timestamp mapping in the model, this exception does not occur.

    Any ideas about this?
  2. Zoran
    Zoran avatar
    534 posts

    Posted 08 Jun 2010 Link to this post

    Hi Jonathan Simmons,

     We evaluated the exception you are having and it provided to be a bug in our handling of the timestamp columns. The bug is already being fixed by our team and the fixed version will soon be available as an internal build on our web site by the end of the week. We are sorry for the temporary inconvenience we might have caused you. Please find your Telerik points updated for this bug report.

    Best wishes,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top