Hi, you should have error reason :
if (file?.Length > 0)
{
Assembly? a = null;
if (file.Length > 3 && file[0] == 0x4D && file[1] == 0x5A && file[2] == 0x90)
a = Assembly.Load(file);
else // cs file?
{
var c = RunCode.Compile(RunCode.CodeType.CSharp, Encoding.UTF8.GetString(file));
if (c?.Errors?.Count > 0)
Logging.WriteError($"Cannot compile plugin '{pathOrUrl}': {RunCode.ErrorsToString(c)}");
if (c?.CompiledAssembly != null)
a = c.CompiledAssembly;
......