Exception has been thrown by the target of an invocation #2
<pre><code>    public static ItemCollection Deserialize(string file)
    {
        ItemCollection Items;
        ItemData[] _Items;
        Stream stream = File.Open(file, FileMode.OpenOrCreate);
        BinaryFormatter formatter = new BinaryFormatter();            
        _Items = (ItemData[])formatter.Deserialize(stream); //Im getting the error here
        Items = new ItemCollection();
        Items.AddRange(_Items);
        stream.Close();
        return Items;
    }
</code></pre>

<p>Hello! I have searched all around the internet for this problem and nothing seems to help me. Keep in mind I have some experience in coding c# I take classes 1 time a week! So please if u could look at my problem and try to help me it would be So helpful!</p>

<p>Here is the exception - Exception has been thrown by the target of an invocation.</p>

<p>I looked at the exception snapshot it says - { "Member 'ItemData' was not found."}</p>

<p>I'm trying to make a program that serialize a book of information from my text boxes to a Text file. I got that working but i can not load the information back to the text boxes.</p>

<p>[This is my item data class]</p>

<pre><code>using System;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;

namespace FurnatureSaver
{
[Serializable()]

class ItemData : ISerializable
{

    private string _Color;



    public ItemData()
    {
    }
    public ItemData(SerializationInfo Information, StreamingContext X101)
    {
        _Color = (String)Information.GetValue(_Color, typeof(string));

    }
    public String Color
    {
        get { return _Color; }
        set {_Color = value;}

    }
    public void GetObjectData(SerializationInfo Information, StreamingContext X101)
    {
        Information.AddValue("Color", _Color );

    }
    public void Set()
   {
    _Color = Color.ToString();
    }
    }
}
</code></pre>
