You need to deploy it on the Spotfire Server you are connecting to. Please refer to section 1.5 in the TIBCO Spotfire Automation Services 5.0 Installation and Deployment Manual.
After deploying the package you need to make sure that the user has the right licenses as well (this is described in the same section).