The RunScript error can happen when the site is untrusted. I ran into this exact error today when trying to run tests against a file on the local filesystem. Making the page part of the IE trusted sites fixed the problem.
More details here: Watin integration test failing with System.UnauthorizedAccessException when executing javascript