I had the same Problem. In my case i wasnt allowed to parse the Registry for whatever reasons (yeah thanks admin). Workaround: Enter the Script. Replace relativeAngle and absoluteAngle with something like:
Vector3 relativeAngle = new Vector3(0f, 0f, 0f); Vector3 absoluteAngle = new Vector3(0f, 0f, 0f);
Or get the exact Values out of the Registry, somehow.
Comment out Registry related lines.