I get this error repeatedly when developing ASP.Net applications:
Cannot create/shadow copy \'XXXXX\' when that file already exists
Where
I was getting the same issue, by placing this code in a web.config worked for me.