Wednesday, March 28, 2012

AJAX Beta 2 and Custom Controls

I just finished installing Beta 2 and now none of my user controls validate.

For example:

<%@dotnet.itags.org.RegisterSrc="PageTop_Icons.ascx"TagName="Icons"TagPrefix="Toolbar" %>

<Toolbar

:IconsID="m_Icons"runat="server"/>

...immediately generates this error:

Error 103 Unknown server tag 'Toolbar:PageTop_Icons'.

The control in question is just a bunch of hyperlinks -- nothing fancy.

I've tried deleting the registration and the control and dragging & dropping a new one. It's automatically assigned the uc1 TagPrefix, the control is visible in the Design window, but still generates the error.

This is happening on every page that uses a User Control. Everything worked fine before I upgraded to Beta 2. Does anyone know what's going on?

That's an interesting one. I can't say based on what you have hear, but if it helps I can tell you that it's not a general problem; I have user controls working just fine w/ Beta 2.

Offhand, I'd probably look at the ascx files and make sure they're not referencing anything in the old Atlas stuff that might now be causing them a compilation error. Failing that, the web.config would be the next place I looked, to make sure all the changes were done correctly.


hello.

any chances of building a simpler control + page and post it here so that we can reproduce your problem?


I wish I had that kind of time. We're trying to get this .net conversion released asap, so the Ajax stuff will have to wait.


Well, like I said, the control in question is nothing more than a set of hyperlinks. Per your suggestion, I spent a good hour rechecking the webconfig and didn't see anything out of place. I tried commenting out some of the new Ajax entries (like the tag mapping) and that just made things even worse. I've since rolled back to working versions. We'll revisit Ajax later on after our initial release.

No comments:

Post a Comment