B
Bsiang Tan
I try to serialize my object into xml
it work, but I can't deserialize it back.
I get an exception.. :-
An unhandled exception of type 'System.Reflection.TargetInvocationException'
occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an
invocation.
My serialize code :
Stream writer = File.Create(saveFileDialog.FileName);
SoapFormatter fmt = new SoapFormatter();
fmt.Serialize(writer, this.dataBean);
My deserialize code :
Stream reader = File.OpenRead(openFileDialog.FileName);
SoapFormatter fmt = new SoapFormatter();
DataBean data = (DataBean) fmt.Deserialize(reader);
Could anyone help please...........
thank you a lot ~
Best regard,
Bsiang
it work, but I can't deserialize it back.
I get an exception.. :-
An unhandled exception of type 'System.Reflection.TargetInvocationException'
occurred in mscorlib.dll
Additional information: Exception has been thrown by the target of an
invocation.
My serialize code :
Stream writer = File.Create(saveFileDialog.FileName);
SoapFormatter fmt = new SoapFormatter();
fmt.Serialize(writer, this.dataBean);
My deserialize code :
Stream reader = File.OpenRead(openFileDialog.FileName);
SoapFormatter fmt = new SoapFormatter();
DataBean data = (DataBean) fmt.Deserialize(reader);
Could anyone help please...........
thank you a lot ~
Best regard,
Bsiang