Annoying problem of the day sorted. Was doing a little bit of work on a project today. I don’t know whether it was upgraded from ASP.NET 1.1 to 2.0 but either way I was getting this annoying error:
The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is not compatible with the type of control (ASP.common_webusercontrol_ascx)
Turns out the CodeFile attribute in the top line of the usercontrol html (ascx) file should now be CodeBehind.
Strange thing is I’m pretty sure this project wasn’t originally in ASP.NET 1.1!