We were receiving this error randomly while trying to deploy the solution from within Visual studio. This error used to crop up randomly. Sometimes after waiting for few seconds or minutes if we try again, things used to work properly without that error.
In one of the forums it was suggested that stopping the indexing service would resolve the issue.
I tried it and it really worked.
Check out that thread