A small number of our users are experiencing an error when they try to launch our application through ClickOnce. it shows
"Application cannot be started. Contact the application vendor."

From reading other solutions on the web, we’ve figured that clearing the cache either using dfshim or by manually deleting the contents of the cache folder does solve the problem.
Is anyone aware of a general solution we could deploy to the end-user instead of having to clear the ClickOnce cache each time this problem occurs? Does anyone know the root cause of this cache corruption issue?
Regardless of the version of the .NET Framework that the application targets, install .NET 4 if it is not already installed. The ClickOnce engine is better, and they have improved some of the handling of the cache so this error should happen less frequently.
Another question — did the user get this after an update was sent out? Or they just got it one day after running the same version for a while?