为什么在程序集中找不到类?
心雨楼 2004-07-05 08:36:59 <%@ Register TagPrefix="rw" Namespace="Region.WebControls" Assembly="Region.WebControls" %>
<%@ Register TagPrefix="mp" Namespace="Reg.MasterPages" Assembly="hl" %>
<rw:Style id="Style1" runat="server" StylePath="sZcAZSC"></rw:Style>
两个程序集Region.WebControls和hl
Style是在Region.WebControls中
程序集 hl 中有个类(是个组件) Region 继承自PlaceHolder, INamingContainer
运行的时候说:
编译器错误信息: CS0234: 类型或命名空间名称“WebControls”在类或命名空间“Reg.MasterPages.Region”中不存在(是否缺少程序集引用?)
为什么啊?百思不得其解。
是不是 名城空间冲突了呢?
Region.WebContols 和 Reg.MasterPage
当要找
Region.WebContols.Style 的时候就变成要找
Reg.MasterPage.Region.WebContols.Style 所以说找不到WebControls