An unhandled exception has occured Unknown Server tag

M

mna

Hi,
I am using ASP.Net 2.0 Beta 2.
I have a class which inherits from "System.Web.UI.WebControls.Label" class.
I have added that class in a control. Now in design mode of that control I
can see the label. but when I drop the control on a form it give an error
"An unhandled exception has occured Unknown Server tag cc1:BaseLableTest".
However when I run it it just work fine. But it is very hard to develop
anything in design mode. This is something which was working perfectly on
framework 1.1

Any help would be highly appreciated.

The code for control and base class is shown below.

Control.ascx:
<%@ Control Language="VB" AutoEventWireup="false"
CodeFile="tControl.ascx.vb" Inherits="tControl" %>
<%@ Register Assembly="gControl" Namespace="MyControlLib.WebControls"
TagPrefix="cc1" %>

<cc1:BaseLabelTest ID="BaseLabelTest1"
runat="server">Hello</cc1:BaseLabelTest>


Public Class BaseLabelTest
Inherits Label
End Class
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top