1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

help with invalad cast exception

Discussion in 'C#' started by doctruscott, Jun 28, 2011.

  1. doctruscott

    doctruscott New Member

    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?
     

Share This Page