当我尝试将.net 2.0代码加载到我们的服务器中时,我收到此错误。
The base class includes the field 'imageDescription', but its type
(System.Web.UI.HtmlControls.HtmlAnchor) is not compatible with the type of control
(System.Web.UI.HtmlControls.HtmlGenericControl).
... at
System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(
ControlBuilderbuilder)
答案 0 :(得分:1)
两个命名空间之间可能存在冲突。尝试删除(或添加):
using System.Web.UI.HtmlControls.HtmlGenericControl;