It is probably unable to compile, not hang, because you haven't set reference to the Scripting Runtime.