workflow task summary throwing error specified cast is not valid using spmetal layer

288 Views Asked by At

I have created share point data access layer with spmetal, everything is works fine but when I try to query with task summary list through SPMETAL it throws error I tried several techniques to cast , directly use this Iqueryable list but as I try to access it, "it throws error specified cast is not valid"

Any help or clue why is throwing this error

1

There are 1 best solutions below

0
On BEST ANSWER

Its solved by changing the types of event type to string and duration field with double . that error was produced by SPMETAL wrong mapping while generating the layer form SharePoint.