AJAX: Unknown server tag 'asp:ScriptManager'.

I just spent an unhealthy amount of time trying to figure out this error:

Unknown server tag 'asp:ScriptManager'.

I was baffled because I already had a reference to AjaxControlToolkit.dll in my project, and I had what I thought was a web.config ready to handle any AJAX requests.  It turned out adding the section below to system.web fixed the problem.

 <pages>

      <controls>

               <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

      </controls>

  </pages>

Print | posted on Wednesday, May 16, 2007 11:54 AM

Comments on this post

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
I usually rename the tagpreffix to something like aspajax whenever i start an ASP.NET Ajax project because the VS.NET IDE gets clunky all the time whenever it can't find the control in the default asp namespace.
Left by Keith Rull on May 16, 2007 10:14 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
perfect! worked like a charm
Left by Steve K on Jun 08, 2007 3:17 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Hello there

How did you rename the tagpreffix ??

Left by A. J. on Jul 27, 2007 9:15 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
What is PublicKeyToken?
Left by Public on Oct 28, 2007 4:50 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
http://msdn2.microsoft.com/en-us/library/system.reflection.assemblyname.getpublickeytoken.aspx
Left by Alex Bransky on Oct 29, 2007 4:19 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Could you please give step by step
Left by Raj on Nov 29, 2007 10:33 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
1) Create a web.config for your app.
2) add the <Pages>...</Pages> given in the frist post above to <System.Web> element in the web.config.
something like this:
.....
<System.Web>
.........
.........
<pages>

<controls>

<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

</controls>

</pages>
</System.Web>

Hope this helps.
Left by Nassero on Feb 17, 2008 12:30 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Thanks for taking to time post the fruits of your labor... tasty.
Left by donoho on Apr 02, 2008 7:23 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
thanks a lot!
Left by lakshmi on Apr 16, 2008 8:15 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Thanx! helped me much :)
Left by Omid on May 07, 2008 11:20 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Thanks, this fixed my problem
Left by Larry on Jun 12, 2008 9:12 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Good solution...worked for me... :)
Left by Munish on Jul 06, 2008 11:54 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Hi i have done all the above but yet my error ( Unknown server tag 'asp:ScriptManager'.) is found any one help me please
Left by helen on Jul 23, 2008 11:50 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Thanks buddy it solves my problem...!!
Left by Joe on Aug 29, 2008 11:04 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Thanks so much for this, sorted me out.
Left by Ed on Sep 28, 2008 10:57 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
thanks.It works...
Left by dhanesh on Sep 29, 2008 2:09 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
thanks a lot for sharing. It saved me a lot of time.
Left by Charu Agarwal on Oct 14, 2008 11:48 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
Thanks buddy. It was very useful.
Left by mahesh on Oct 23, 2008 1:38 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
me no saber
Left by mighty on Nov 03, 2008 11:59 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
I don't see <pages> in my web.config. I do see

There is only one entry or "pages" found in my web.config file

<pages enableSessionState="false" enableViewState="true" enableViewStateMac="true" validateRequest="false" .............
</pages>
is this where I add the post lines?

Thanks
Left by andyoye on Nov 06, 2008 1:38 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
i have already register and make tag prefix stil error comming.
pls give me solutin quick.

here i describe my register tag code
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

in advance thank you
Left by Gaurav Shah on Nov 17, 2008 5:11 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.

Requesting Gravatar...
THANK YOU for saving the rest of us hours and hours of searching. worked like a charm!
Left by itrickski on Nov 20, 2008 9:12 AM

Your comment:

 (will show your gravatar)
 
Please add 5 and 4 and type the answer here: