SharpSerializer
SharpSerializer copied to clipboard
File not fount Exception
SharpSerializer sharpSerializer = new SharpSerializer(true);
using (FileStream stream = new FileStream(@"E:\JetBrains Workspace\RiderProjects\ss_c\pro.bin",
FileMode.Open, FileAccess.Read))
{
var objs = sharpSerializer.Deserialize(stream);
}
The code is as above. I reported an error when using it according to the official example:
Unhandled exception. Polenter.Serialization.Core.DeserializingException: An error occured during the deserialization. Details are in the inner exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'Data, Culture=neutral, PublicKeyToken=null'. System could not find file.
File name: 'Data, Culture=neutral, PublicKeyToken=null'
But the file is exists.