用户控制错误 [英] ERROR AT USER CONTROL
本文介绍了用户控制错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何纠正错误?
how to rectify the errors?
Error 1 Element ''ListPicker1'' is not a known element. This can occur if there is a compilation error in the Web site.
Error 2 /WebSite6/ListPicker.ascx has a circular reference! /
推荐答案
您需要在解决方案中清除循环引用.
简而言之,要解释循环引用,您需要进行如下汇编:
1.引用B.dll的A.dll
2.引用C.dll的B.dll
3.引用A.dll的C.dll
这可能发生在任何数量的项目/程序集中,而不仅仅是3.
这是清除循环引用的一种方法:如何在C#中摆脱循环引用
[ ^ ]
You need to clear circular reference in your solution.
To explain circular reference in short, you have assembly as follows:
1. A.dll referencing B.dll
2. B.dll referencing C.dll
3. C.dll referencing A.dll
This can happen with any number of projects / assemblies not just 3.
Here is an approach for clearing circular reference:How to get rid of circular references in C#
[^]
在您的aspx页面上添加此
At your aspx page add this
<%@ Register TagPrefix="LP" TagName="TitleBar" Src="ListPicker.ascx" %>
这篇关于用户控制错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文