Click here to Skip to main content
12,507,173 members (60,464 online)
Click here to Skip to main content
Add your own
alternative version


26 bookmarked

"Unrecognized Tag" problem while changing the namespace for a custom Atlas control project

, 16 Oct 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
This article provides the steps to solve the "Unrecognized Tag" problem for an Atlas control.

Atlas Custom Composite Control in IE


Having developed an Atlas composite social security control, I wanted to change the root namespace from the default (<Project Name>) to the standard followed at my company. I thought it would be simple enough; I was in for a big surprise. Basically, I opened the project properties and replaced the Root namespace from “AmericanSSN” (this was my project name) to “AO.Web.UI.AtlasControls”. I recompiled the project, included it in the toolbox, and dropped the composite control on an ASPX page, the control rendered fine at design time. When the page was loading at runtime, I got the “Unrecognized tag” error for “americanssn:AmericanSSNBehavior”. Looking at the rendered HTML, I found that under the XML-script section generated by the extender class, the Page tag and Behavior were rendered as:

<page …. 

    <americanssn:AmericanSSNBehavior MyProperty="" 
          id="AmericanSSNControl1_SSNProperties" />

Next, I looked at the generated assembly using ILDASM. At the very end of the MANIFEST section was the following entry to bundle the JavaScript resource into the assembly:

.mresource public AO.Web.UI.AtlasControls.AmericanSSNBehavior.js
  // Offset: 0x00000000 Length: 0x00001AD0
Since I had changed the Root namespace, I had to now change the extender file so that it renders the following:
<page …. 

  <ao.web.ui.atlascontrols:AmericanSSNBehavior MyProperty="" 
     id="AmericanSSNControl1_SSNProperties" />

I also had to change the JavaScript file. The changes required are explained in the following three steps.

Step 1.

Modifications to project properties: Click on project properties and change the root namespace from <Project Name> to AO.Web.UI.AtlasControls.

Project Properties

Step 2.

Modifications to the extender file (AmericanSSNExtender.vb):

Modify the “Assembly Resource Attribute” region, click on the + sign to open the region, and change the namespace qualifier of the JavaScript file from <Project Name> to the root namespace. Modify the ClientScriptResource class attribute tag, change the prefix parameter from <Project Name> to the root namespace, and change the namespace qualifier of the JavaScript file


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior) AppleOne
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160927.1 | Last Updated 16 Oct 2006
Article Copyright 2006 by azharkhan
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid