I'm sorry to hear you are having issues with SecurityAssist, i will try to assist you in resolving these issues.
Are you still getting the error message after you cleared your configuration folder?
If SecurityAssist is producing php code, that means you have your site set up as a php site. Please make sure that you have your site set up to be an asp site by going to:
Site -> Manage Sites and then select your site and click edit and under the testing server make sure to select the correct server model.