Using ASP.<control name> to reference the variable causes the automatic builds to break under ASP.NET 2.0 and MS Build projects.
The solutuion that I used to get my web site published was to un-check 'Allow this precompilled Site to be updatable' in VS2005.