Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   help with invalad cast exception (http://www.go4expert.com/forums/help-invalad-cast-exception-t26167/)

doctruscott 28Jun2011 18:39

help with invalad cast exception
 
hello, i get a invalid cast exception for the following line : costList = (List<mycost>)abf.Deserialize(df);

exact error is : Unable to cast object of type 'System.Collections.Generic.List`1[test.Form1+comoditys]' to type 'System.Collections.Generic.List`1[test.Form2+mycost]'.

i have looked this up online and cannot find a good answer to this issue can anyone help me out?


All times are GMT +5.5. The time now is 12:11.