SharpSerializer icon indicating copy to clipboard operation
SharpSerializer copied to clipboard

File not fount Exception

Open rettt767 opened this issue 1 year ago • 0 comments

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.

rettt767 avatar Apr 14 '23 05:04 rettt767