Adding the line
MagickNET.SetGhostscriptDirectory("C:\\Program Files (x86)\\ghostscript\\gs8.71\\bin");
solved the problem.