Compare the code in the application.src in the new workspace to the one in the existing workspace and make sure the connection object is defined properly (and inside the application object).