UPDATE
Since 2014R1 our assemblies are made more obfuscator-friendly which should prevent the issue reported here.
Hello, we will look into this. We know for sure that our library works with Mono 3.2, so it's kind of strange it doesn't work with 3.2.3 for you.
However, we first have to determine what is actually causing the error. The stack trace is a great start - there is some problem in the EncodingTools
object static constructor which is called by the Sftp
object (which actually calls Rebex.EncodingTools.Default
). Could you please try running the following code to make sure this is indeed the issue?
var encoding = Rebex.EncodingTools.Default;
If this fails as well, please try declaring this class and call its GetDefault()
method. Does it fail or does it work?
public class StringArrayTest
{
private static Encoding _default;
public static Encoding GetDefault()
{
if (_default == null)
_default = Encoding.GetEncoding(EncodingNames[2]);
return _default;
}
private static readonly string[] EncodingNames =
{
"windows-1250",
"windows-1251",
"windows-1252",
"windows-1253",
"windows-1254",
"windows-1255",
"windows-1256",
"windows-1257",
"windows-1258",
"iso-8859-1",
"iso-8859-2",
"iso-8859-3",
"iso-8859-4",
"iso-8859-5",
"iso-8859-6",
"iso-8859-7",
"iso-8859-8",
"iso-8859-9",
"iso-8859-11",
"iso-8859-13",
"iso-8859-15",
"IBM437"
};
}