I from this answer what the differences are between Build, ReBuild and Clean solution, but I'm not clear about whether it only updates the binaries in the project dir(s) or also makes sure the ones in the IIS webroot, caches, etc. are replaced.
Sometimes, I'll add a breakpoint and attach to the IIS process to debug and it will warn me that the loaded binary doesn't match the solution, even though I rebuilt. I have to hit a page wit开发者_开发知识库h my browser to fix it (that causes ASP.NET to rebuild the binary). Why isn't the binary in IIS getting replaced when I build in VS?
Try this...
<system.web>
<hostingEnvironment shadowCopyBinAssemblies="false"/>
</system.web>
精彩评论