Posts
120
Comments
117
Trackbacks
22
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>

posted on Wednesday, May 16, 2007 11:54 AM Print
Comments
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Keith Rull
5/16/2007 10:14 PM
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.
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Steve K
6/8/2007 3:17 AM
perfect! worked like a charm
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
A. J.
7/27/2007 9:15 PM
Hello there

How did you rename the tagpreffix ??

Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Public
10/28/2007 4:50 PM
What is PublicKeyToken?
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Alex Bransky
10/29/2007 4:19 AM
http://msdn2.microsoft.com/en-us/library/system.reflection.assemblyname.getpublickeytoken.aspx
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Raj
11/29/2007 10:33 PM
Could you please give step by step
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Nassero
2/17/2008 12:30 PM
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.
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
donoho
4/2/2008 7:23 AM
Thanks for taking to time post the fruits of your labor... tasty.
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
lakshmi
4/16/2008 8:15 PM
thanks a lot!
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Omid
5/7/2008 11:20 AM
Thanx! helped me much :)
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Larry
6/12/2008 9:12 AM
Thanks, this fixed my problem
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Munish
7/6/2008 11:54 PM
Good solution...worked for me... :)
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
helen
7/23/2008 11:50 PM
Hi i have done all the above but yet my error ( Unknown server tag 'asp:ScriptManager'.) is found any one help me please
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Joe
8/29/2008 11:04 PM
Thanks buddy it solves my problem...!!
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Ed
9/28/2008 10:57 PM
Thanks so much for this, sorted me out.
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
dhanesh
9/29/2008 2:09 AM
thanks.It works...
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Charu Agarwal
10/14/2008 11:48 PM
thanks a lot for sharing. It saved me a lot of time.
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
mahesh
10/23/2008 1:38 AM
Thanks buddy. It was very useful.
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
mighty
11/3/2008 11:59 AM
me no saber
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
andyoye
11/6/2008 1:38 AM
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
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Gaurav Shah
11/17/2008 5:11 PM
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
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
itrickski
11/20/2008 9:12 AM
THANK YOU for saving the rest of us hours and hours of searching. worked like a charm!
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
abhishek
12/14/2008 6:40 PM
I added <pages> in my web.config. It worked!!!

But i m getting follwing error in Mozilla Firefox

Error: uncaught exception: [Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (NS_ERROR_DOM_SYNTAX_ERR)" location:

Plz help.....

thanks in advance ....Alex
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
jsimhan
1/5/2009 4:36 AM
Thanks a lot. After seeing the reference here I could fix the problem.

If you have the default "cc1" as your prefix after including ajax toolkit, the web.config file should have entry as follows if you include webservice references.



<pages>
<controls>
<add tagPrefix="cc1" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</controls>
</pages>
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
webdesign @ PK
2/3/2009 7:26 PM
We had the same problem it worked like a charm!
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Gane
2/5/2009 7:40 PM
Hi, Thanks man, its sorted out my problem
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
osman kasapoğlu
2/18/2009 1:11 AM
adding AjaxControlToolkit.dll in your bin folder. build your project in .net framework 3.5 mode
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
priyanka
2/25/2009 6:36 PM
thnks it really good.it is stret forward solution.i like this article
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Vito
3/18/2009 2:40 AM
an unhealthy amount of time
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Ashandra Singh
4/5/2009 10:52 AM
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>

Add the above lines to your web config inside the <system.web> root element.

Basically it loads the approriate assemblies.
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
suri
5/5/2009 12:11 AM
the solution is

with in this tag

add this assembly code.

<pages>

<controls>

<add tagPrefix="nw" namespace="ErrorPopup" assembly="ErrorPopup"/>

</controls>

</pages>
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Raj
5/20/2009 6:19 PM
My huge thanks to "Nassero"

ur code snippet solved my issue in rectifying the error message of scriptmanager.

Thanks a lot.

grt work by you.

bye
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Anders
6/5/2009 6:32 AM
Hi, thanks, thoough I had to struggle with the web.config this helped me to another step further.
No I'm banging my head towards how to set the permissions correctly, but that is another thread I think.
/a
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Marcel Bradea
7/8/2009 11:39 AM
For my generated Silverlight web site project there was no web.config, so it took a simple addition of a Web Configuration Item for this to work. These lines were added in automatically from that template.

Cheers!
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Kam
7/9/2009 4:56 PM
Great tip, works in SharePoint as well.
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Dhivya
7/27/2009 12:37 AM
Hi,
thanks a million...
I had this issue for the last 2 days and have screwed up..
this solution helped me lot..
once again thank you so much
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Tatoba
8/5/2009 11:18 PM
Hi
Thanks a lot
Great script
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Gilda
8/18/2009 9:02 PM
It works perfectly. Nowadays you could need to change the tag in:
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Esther
9/16/2009 12:54 PM
Thank YOU! Works perfectly...would've taken me days to figure this one out myself
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Yeny
9/19/2009 5:18 PM
Thank YOU!
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Omar Diaz
10/5/2009 11:57 AM
I didn't get it to work, and I'm guessing that it's because I have the ajax 2005 version, I think the version pair-name its the problem... what do you think?
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
dev_interview
10/12/2009 8:23 AM
Thanks. That saved me at least an hour...
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Harish Vajja
10/15/2009 11:28 AM
My heartly thnaks to you dude. you made my day.
Gravatar
# DAVETİYECİ
DAVETİYE
10/30/2009 7:49 PM
güzel davetiye sözleri ve davetiye metinleri
Gravatar
# re: AJAX: Unknown server tag 'asp:ScriptManager'.
techincal_interview
11/1/2009 4:26 PM
This fixed the problem on my machine. But, the interesting thing is the same code works fine on another machine which does not have the section you mentioned above.
Gravatar
# davetiye,davetiye sözleri
davetiyei
11/18/2009 12:33 AM
düğün davetiyesi ve davetiye sözleri

Post Comment

Title *
Name *
Email
Url
Comment *  
 
News