user1784973
user1784973

Reputation: 95

Server Error in the application '/

I convert the project from 4.0 to 4.5 framework, after convertion every thing is working fine in VS2013 and i checked it by deploying it in my local IIS. every thing is working fine. but when i host it in Client server, i am getting "The base class includes the field 'HTML1', but its type (System.Web.UI.HtmlControls.HtmlElement) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl.) " in masterpage.

enter image description here

Upvotes: 1

Views: 385

Answers (1)

Delta
Delta

Reputation: 161

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.

Upvotes: 1

Related Questions