Clearing the Application Cache

I've been having some issues of the past few days where, having successfully built our application, the deployment process fails with the message

"application deployment error"

and in the detail

"Exception occurred during store operation."

This can be easily resolved by using the Windows SDK tool 'Mage' (Manifest Generation and Editing tool) as so

Mage -cc

This clears the application cache meaning that the next time you hit 'play' in Visual Studio you application is published correctly.