Sorry if my english sucks, it's not my native language.
I'm stuck with following problem:
I have two vb.net (2003) applications, first one makes a list ofwords and their occurrence:
Dim formatter As NewSystem.Runti me.Serializatio n.Formatters.Bi nary.BinaryForm atter
Dim fstream As New System.IO.FileS tream _
(txtPath.Text, IO.FileMode.Cre ate)
formatter.Seria lize(fstream, wordlist)
fstream.Close()
and other program tries to read a produced file to same kind ofstructure:
Dim formatter As NewSystem.Runti me.Serializatio n.Formatters.Bi nary.BinaryForm atter
Dim fstream As New System.IO.FileS tream _
(Application.St artupPath & "\index.bin",IO .FileMode.Open, IO.FileAccess.R ead)
wordlist = CType(formatter .Deserialize(fs tream),ArrayLis t)
fstream.Close()
I have defined in both programs:
<Serializable() > Public Class cWordInfo
Public word As String
Public files() As String
End Class
Public wordlist As New ArrayList
Now the problem is that apparently binaryformatter serializesalso some assembly-information, and my reader program (actualproduct) can't read a file because of assembly conflict? Have Iunderstood correctly, and if so, how do I fix the problem? Iwouldn't like to start hacking assembly-information, but do thisserializati on nicely from code. How should I proceed? The file Icreate with my tool-program is about 3 megabytes, and file withxml-serialization (witch I did get to work) is about 15megabytes, and that's not an acceptable filesize, it takes toomutch time to load. I'm not trying to send the file over thenetwork, it's all in one computer.
You can see reader-program's error message at:
http://www.esakom.net/ongelma.gif
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>QsFlSq2cVEC b+81OHGwxLQ==</Id>