This error most frequently happens when trying to include an .aspx Web Form as if it would be an .ascx User Control.
This is wrong:
<%@ Register TagPrefix="Foo" Namespace="My.WebApplication" Assembly="My.WebApplication" %> <Foo:Default runat="server" />
Trying to use Default (.aspx) as an inline User Control is a bad idea, so don’t do it.