This question is locked. New answers and comments are not allowed.
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
[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