Mar 30, 2011 01:44 PM|webguy69|LINK
I was able to reproduce this issue by using an MSI installer to install my web site to IIS. I then made code changes and manually published over top of the MSI install. I then uninstalled the web site from Add/Remove Programs.
I have a separate branch of source code from TFS which is based on the same web site code only it has different pages and functionality. When I created a new MSI and installed the web site to the server I received this error when I navigated to it.
To fix, I uninstalled the web via Add/Remove Programs. This left the bin directory and the global asa file it was complaining about. So I manually deleted the entire web directory and reinstalled via the MSI.
The problem went away.
Just make sure after you install your app to either not manually publish to the server or at least make sure all folders are deleted from the physical folder when the web site is uninstalled.