This is a migrated thread and some comments may be shown as answers.

Unknown server tag in master page

2 Answers 149 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 22 Aug 2009, 07:32 PM
Hi

I am experiencing a frequent problem in Visual Web Developer 2008 SP1 with RadControls q2 2009.
The problem is more of an annoyance than a killer issue.

Often when I open a site I am working on in vwd, pages that are working fine will show all the telerik controls
in the Master page (in design view) in boxes with 'Error Creating Control' ... An unhandled exception error has occurred. Unknown server tag
(etc etc)

This then takes up the screen real estate and makes the page look totally unlike the browser view.

I need to emphasis;
1 ) this does not always happen.
2 ) it does not affect the runtime behaviour. The controls are not really 'uknown' at all.

I have tried closing and reopening vwd, rebooting windows, and this sometimes works.

Can you suggest how I can fix this annoying problem?

Thanks

Clive

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Aug 2009, 05:53 AM
Hi Clive,

Can you make sure that the tagprefix in the telerik control declaration and that of the control are same.

e.g:

 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
 
    <telerik:RadGrid ID="RadGrid1" runat="server"  AllowPaging="true" PageSize="5" > 
        ..... 

Princy
0
Clive Hoggar
Top achievements
Rank 1
answered on 24 Aug 2009, 09:38 AM
Hi Prinzy

Success... but a question

The child page itself did not have the 'register asembly' in it but the parent pages do have.
So I inserted the register assembly declaration in the child page as well, and then the errors disappeared
(including on all similar child pages).

I then removed the declaration I had added, and tried the pages again. It is all ok without errors.

I am not sure what this  means....

Did something get unregistered somehow?

In general do child pages need to have the 'register assembly declaration in them or is it OK if they are just in the parent page?

Thanks

Clive
Tags
General Discussions
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Clive Hoggar
Top achievements
Rank 1
Share this question
or