Error "Automation server can't create object"

If you use tray application on Windows Server system, you may encounter a script error "Automation server can't create object". For solving this issue, just add the site "127.0.0.1:5466" into trusted sites under IE settings.