You need to recompile the code using the .net 4.5 runtime. And when doing this, you need to change the *.designer.cs file reference from:
protected global::System.Web.UI.HtmlControls.HtmlGenericControl html;
To:
protected global::System.Web.UI.HtmlControls.HtmlElement html.