I have a VS 2005 web site that I publish using \"Publish Web Site\", and I clear all the three checkboxes. I also have a deployment project that picks up the published files
This error has occurred to me, and I solved it.
When you want to publish your site, check use fixed naming and single page assemblies in Visual Studio
You'll see this problem will be solved!