Received this error when trying to run a test script:

ERROR “-1: Previous load of class failed: somecontroller”


Change the version setting of this controller to 24 (or the latest).

Received this error when trying to deploy a Site from sandbox to production: Site : In Field: invalid subdomain specified.”

SOLUTION: recommends that you use a Developer Sandbox environment to build and test your sites prior to deploying to production. When you are ready to deploy, you will need to manually re-create your site on production. However, all of the supporting assets, e.g., Visualforce Pages, Apex Classes, and Static Resources, can be deployed to production with the IDE, using the Migration Tool, or the Metadata API call deploy.