I stucked at this error...
I serialize the Employee class with Person is an Interface HELP ME OUT...........
Code:
//Code
FileStream fs = new FileStream(
@"D:\Sagar Dot Net\Assign_2304_Interface_Person_Serialise\Assign_2304_Interface_Person_Serialise\Aadmai.txt",
FileMode.OpenOrCreate,
FileAccess.Read);
BinaryFormatter bf = new BinaryFormatter();
object obj = bf.Deserialize(fs);
if (obj is Person)
{
Person P = (Person)obj;
MessageBox.Show(P.GetDetails());
}
//Code
//Error
An unhandled exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.dll
Additional information: Unable to load type Assign_2304_Interface_Person_Serialise.Employee required for deserialization.
//Error
Comment