2

当我尝试将我的 .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)
4

1 回答 1

1

也许两个命名空间之间存在冲突。尝试删除(或添加):

using System.Web.UI.HtmlControls.HtmlGenericControl;
于 2013-03-13T09:06:37.120 回答