This is a migrated thread and some comments may be shown as answers.

Timestamp generating InvalidCastException

1 Answer 65 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonathan
Top achievements
Rank 1
Jonathan asked on 02 Jun 2010, 10:45 PM
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?
Regards,
Jonathan

1 Answer, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 08 Jun 2010, 01:31 PM
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,
Zoran
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.
Tags
Design Time (Visual Designer & Tools)
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Share this question
or