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

Ambiguous reference

1 Answer 107 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 25 Nov 2011, 09:34 AM
I have the following in my web.config to stop me having to add a register directive to every page on my site:

<pages>
<controls>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
</controls>
</pages>

When I add a Telerik control to a page, the designer adds the following to the control on the ASPX page
xmlns:telerik="telerik.web.ui".   If I remove it, it still builds, however, if I do anything with the designer it comes back.

This means that I am getting warnings about an ambiguous reference, where it is finding the telerik prefix in both the web.config and the control.

Is there any way to stop this happening?

Thanks

Richard

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 29 Nov 2011, 12:40 PM
Hi Richard,

Have you considered this forum post where a similar issue is mentioned?

If this doesn't solve the problem,  please provide the exact code which is used when you observe this odd behavior.

Regard,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or