Attempt by security transparent method '%1' to call native code through method '%2' failed. Methods must be security critical ...