We had the same problem, but with minor complications, we have many sites, so "cleaning up all the pace" and restarting IIS is not a good option for us. Therefore, we needed to be more selective in what was forced to update.
On our QA machine, under ... "C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET Files" I tried searching for a file for the partial file name of what we are trying to release. The file was found in the folder like this: C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Temporary ASP.NET files \ root \ 4503212x \ ad95664x, so I stopped the application pool, deleted the folder, restarted and everything turned around then - fine!
But ... We had the same problems with deployment to production, and there was no higher.
In short, the QA application pool was set to "enable 32-bit truth", but it was set to "False" for production, so the prod temp files were in: "C: \ Windows \ Microsoft.NET \ Framework64 \ v4.0.30319" instead of (\ Framework64 \ instead of \ Framework \).
If cleaning up temporary files does not work, double-check your frameworks or look for update files at the folder level C: \ Windows \ Microsoft.NET and below. You may be surprised.
Tom a
source share