For any future visitors, I had this issue when trying to upgrade by copying the three folders (wp-admin, wp-includes, and wp-admin). To fix it, I also replaced the root wordpress folder files (wordpress/*). There must have been changes in those files needed for the upgrade from the version I was upgrading from (3.2.1).