当我试图将我的.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)发布于 2013-03-13 17:06:37
也许两个命名空间之间存在冲突。尝试删除(或添加):
using System.Web.UI.HtmlControls.HtmlGenericControl;https://stackoverflow.com/questions/15380395
复制相似问题