Krusen / BencodeNET

.NET library for encoding/decoding bencode and reading/writing torrent files
The Unlicense
152 stars 28 forks source link

ERROR: Could not load file or assembly #58

Closed foxi69 closed 1 year ago

foxi69 commented 2 years ago
System.BadImageFormatException
Message : Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. Reference assemblies should not be loaded for execution.  They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)
StackTrace :    at BencodeNET.Parsing.BStringParser.Parse(BencodeReader reader)
   at BencodeNET.Parsing.BDictionaryParser.Parse(BencodeReader reader)
   at BencodeNET.Torrents.TorrentParser.Parse(BencodeReader reader)
   at BencodeNET.Parsing.BencodeParserExtensions.Parse[T](IBencodeParser parser, Stream stream)
   at BencodeNET.Parsing.BencodeParserExtensions.Parse[T](IBencodeParser parser, String filePath)
   at MultiUploader.Helpers.Files.ReadTorrentFiles(String torrentPath)
System.BadImageFormatException
Message : Cannot load a reference assembly for execution.

Can you help me? :/