Invalid Cast Exception

I know there is another post about this, but my problem is different because I’ve got exactly the same line of code as Sam in the video but I still get the invalid cast error.

It throws the error at this line:

         Dictionary<string, object> data = (Dictionary<string, object>)state;

Why else could this be? It works fine in the video.

It was because I hadn’t reached the part about incompatible save file. I just had to delete it like in the video. Oops, sorry!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms