Received this error when trying to run a test script:

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

SOLUTION:

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


Received this error when trying to deploy a Force.com Site from sandbox to production:

ERRORForce.com Site : In Field: invalid subdomain specified.”

SOLUTION:

Salesforce.com 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 Force.com IDE, using the Force.com Migration Tool, or the Force.com Metadata API call deploy.