Just wanted to post that I was experiencing this problem after I added web user contols to a non-web application project. Once I copied the project over to a new web application project all was fine. Apprently, Visual Studio 2005 will let you manage web user controls (.ascx or .aspx files) in a non-web application project but won't bind the code-behind for you unless it is part of a web application project.