L
Luck
Hi, I really need some expert help... please! Basically, I need to
serialize a data structure object to a file using SOAP and then load and
de-serialize that file in ANOTHER program. When I serialize / deserialize
the object in the SAME application, it works fine but when I simply copy the
identical code to another application and try deserialization from that
second application, I get the error:
An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in
system.runtime.serialization.formatters.soap.dll
Additional information: Parse Error, no assembly associated with Xml key
a1:http://schemas.microsoft.com/clr/nsassem/Empression_Client/Empression C
lient%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnu
ll General+SerializableData
A sample of the code I've been using to serialize and deserialize objects is
below:
Sub SaveSOAPData (ByVal path as String, ByVal o as Object)
Dim fs as FileStream = New FileStream (path, FileMode.Create)
Dim sf as New SoapFormatter (Nothing, New StreamingContext
(StreamingContextStates.File))
sf.Serialize (fs, O)
fs.close
End Sub
Function LoadSOAPData (ByVal path As String) As Object
Dim fs as FileStream = New FileStream (path, FileMode.Open)
Dim sf as New SoapFormatter (Nothing, New StreamingContext
(StreamingContextStates.File))
LoadSOAPData = sf.Deserialize (fs)
fs.close
End Function
I'd appreciate any help that anyone can offer.
Thanks in advance!!!!!
serialize a data structure object to a file using SOAP and then load and
de-serialize that file in ANOTHER program. When I serialize / deserialize
the object in the SAME application, it works fine but when I simply copy the
identical code to another application and try deserialization from that
second application, I get the error:
An unhandled exception of type
'System.Runtime.Serialization.SerializationException' occurred in
system.runtime.serialization.formatters.soap.dll
Additional information: Parse Error, no assembly associated with Xml key
a1:http://schemas.microsoft.com/clr/nsassem/Empression_Client/Empression C
lient%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnu
ll General+SerializableData
A sample of the code I've been using to serialize and deserialize objects is
below:
Sub SaveSOAPData (ByVal path as String, ByVal o as Object)
Dim fs as FileStream = New FileStream (path, FileMode.Create)
Dim sf as New SoapFormatter (Nothing, New StreamingContext
(StreamingContextStates.File))
sf.Serialize (fs, O)
fs.close
End Sub
Function LoadSOAPData (ByVal path As String) As Object
Dim fs as FileStream = New FileStream (path, FileMode.Open)
Dim sf as New SoapFormatter (Nothing, New StreamingContext
(StreamingContextStates.File))
LoadSOAPData = sf.Deserialize (fs)
fs.close
End Function
I'd appreciate any help that anyone can offer.
Thanks in advance!!!!!