It seems that problem is not in downloading archive but in extracting it with ZipFile.ExtractToDirectory(gameZip, rootPath, true);
, try to check is properties gameZip
and rootPath
is valid, maybe its relative path on your machine or null value. You can also try to hardcode path in ExtractToDirectory
instead of passing properties to debug this method and figure out the problem