You should not have to declare it. What does your scriptingreferences line in your settings.ini file contain? Mine is like this:
You might need to add the System.Web ones.
Code:
ScriptingReferences=System.Management;System.Management.dll,System.Web;System.web.dll,System.Windows.Forms;System.Windows.Forms.dll,System.Drawing;System.Drawing.dll
Comment