The Wrecking Bawl

Destructuring query language, one keyword at a time.


News


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>


Comments

Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Keith Rull on 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'.
Posted by Steve K on 6/8/2007 3:17 AM
perfect! worked like a charm
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by A. J. on 7/27/2007 9:15 PM
Hello there

How did you rename the tagpreffix ??


Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Public on 10/28/2007 4:50 PM
What is PublicKeyToken?

Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Alex Bransky on 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'.
Posted by Raj on 11/29/2007 10:33 PM
Could you please give step by step
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Nassero on 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'.
Posted by donoho on 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'.
Posted by lakshmi on 4/16/2008 8:15 PM
thanks a lot!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Omid on 5/7/2008 11:20 AM
Thanx! helped me much :)
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Larry on 6/12/2008 9:12 AM
Thanks, this fixed my problem
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Munish on 7/6/2008 11:54 PM
Good solution...worked for me... :)
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by helen on 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'.
Posted by Joe on 8/29/2008 11:04 PM
Thanks buddy it solves my problem...!!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Ed on 9/28/2008 10:57 PM
Thanks so much for this, sorted me out.
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by dhanesh on 9/29/2008 2:09 AM
thanks.It works...
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Charu Agarwal on 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'.
Posted by mahesh on 10/23/2008 1:38 AM
Thanks buddy. It was very useful.
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by mighty on 11/3/2008 11:59 AM
me no saber
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by andyoye on 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'.
Posted by Gaurav Shah on 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'.
Posted by itrickski on 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'.
Posted by abhishek on 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'.
Posted by jsimhan on 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'.
Posted by webdesign @ PK on 2/3/2009 7:26 PM
We had the same problem it worked like a charm!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Gane on 2/5/2009 7:40 PM
Hi, Thanks man, its sorted out my problem
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by osman kasapoğlu on 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'.
Posted by priyanka on 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'.
Posted by Vito on 3/18/2009 2:40 AM
an unhealthy amount of time
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Ashandra Singh on 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'.
Posted by suri on 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'.
Posted by Raj on 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'.
Posted by Anders on 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'.
Posted by Marcel Bradea on 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'.
Posted by Kam on 7/9/2009 4:56 PM
Great tip, works in SharePoint as well.
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Dhivya on 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'.
Posted by Tatoba on 8/5/2009 11:18 PM
Hi
Thanks a lot
Great script
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Gilda on 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'.
Posted by Esther on 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'.
Posted by Yeny on 9/19/2009 5:18 PM
Thank YOU!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Omar Diaz on 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'.
Posted by dev_interview on 10/12/2009 8:23 AM
Thanks. That saved me at least an hour...
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Harish Vajja on 10/15/2009 11:28 AM
My heartly thnaks to you dude. you made my day.
Gravatar # DAVETİYECİ
Posted by DAVETİYE on 10/30/2009 7:49 PM
güzel davetiye sözleri ve davetiye metinleri
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by techincal_interview on 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
Posted by davetiyei on 11/18/2009 12:33 AM
düğün davetiyesi ve davetiye sözleri
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by goldengel on 11/24/2009 1:41 AM
Hi. I can not use the web.config file. Is there any possibility to make the same declaration in the main ASPX page?
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Mihir on 12/9/2009 5:16 PM
Still its giving error... I have checked in add reference ... there is no any sysetm.web.extension library ... what to do? pls help
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by burhan on 2/14/2010 8:34 PM
thanks dude, u saved me :)
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by AlB on 3/19/2010 7:41 AM
Go to www.sevensimplemachines.com if you want to contract developers for more expert solutions such as the one above.
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Joe Blow on 3/21/2010 6:10 PM
this error can also be fixed by installing (or reinstalling) the ASPAJAXExtSetup.msi package. (MS ASP.NET 2.0 AJAX extenstions 1.0)
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by HaterTot on 3/22/2010 1:21 PM
holy crap dude. You've saved me so much time and headache on my very first deployment of an asp.net app on a shared webserver
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Pradheepkumar on 5/21/2010 11:21 PM
Thank you very much. it's working
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Amit A Vimal on 5/24/2010 6:34 AM
Thanks alot
it really helped alot
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Gauree on 6/1/2010 11:55 PM
asp:scriptmanager instance is not present. for timer control it requires scriptmanager. what should i do??
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by faheem on 10/10/2010 8:10 PM
it worked man (Y) thanks
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by utkarsh on 10/22/2010 7:34 PM
thanx...it really worked...:)
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Ash Robbins on 10/26/2010 3:52 AM
Thank you so much for this! I've been pulling my hair out all bloody day over this problem! Brilliant!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by WLBlakeshaw on 10/27/2010 9:06 AM
I was also having this happen in VS2010. I created a brand-new empty ASP.NET web site and had warnings for all of my AJAX controls (such as “Element ‘ScriptManager’ is not a known element. This can occur if there is a compilation error in the Web site”). Adding the code above to my web.config file corrected that. The weird thing was, I could still load the page and all the AJAX stuff worked. It just mainly came down to lack of Intellisense.

WL
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Ashish on 10/31/2010 4:41 AM
I am not able to add ScriptManager control in C# 2008.
Error: Error creating control ScriptManager1
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Shilpa on 11/2/2010 6:03 PM
Thank You!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Website laten maken on 12/3/2010 2:27 AM
Thank you for sharing this, it solved my problem!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Isha on 1/11/2011 6:47 PM
it worked! thanks!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by erd on 1/18/2011 3:48 AM
Its all about the trust level if i understand correct its easy to solve with this solution.
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Rosch on 2/10/2011 12:51 AM
Works perfectly. Thanks a lot!
Gravatar # Parser Error Message: Unknown server tag 'asp:ScriptManager'.
Posted by Vincent on 4/5/2011 11:04 PM
i am getting Parser Error Message: Unknown server tag 'asp:ScriptManager' when site is hosted.But it is working perfectly in localhost.

i added the above code and added dll's in the bin folder.still the same error is showing up.somebody Please help
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Je on 5/1/2011 7:14 PM
thanks a lot
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Je on 5/1/2011 7:14 PM
thanks a lot dude
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Orcy on 6/1/2011 11:18 PM
thank you it was of great help
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by 7 inch lcd monitor on 7/7/2011 8:19 AM
We have had this error with one of our webshops, we spend a lot of time to solve and we just got it again. This was a great help. Thanks
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by showme on 8/27/2011 7:30 AM
This solved my problem ..great tip ..wonder why vs2010 doesnt include this in the config by default
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by AF on 9/14/2011 1:32 AM
Worked for me too!
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Maestrodabla on 9/23/2011 7:19 AM
It works very well. You make me save so much time.
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by bhagirathi on 10/10/2011 11:41 PM
Thanks it solved my problem
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Website laten maken on 10/12/2011 3:43 AM
Nice blog. Please keep posting and i'll will keep visiting this blog very often.

Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Freelance PHP on 10/24/2011 12:07 AM
There cheater been consolidated latched wrapper paired departed stories of dynamical against all tbe ratio and yon valour. But there are cultivatable stories of jumbo inefficiency in the moil of aid. And Grouping is now out of the furnish in wellborn of pol stories yet the curtilage is in cumulous upshot of member and assets

Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Ahmed Ali on 10/24/2011 2:06 AM
I do all the steps as follow:


but another error occured,
the new error is:
"
Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified


Source Error:


[No relevant source lines]


Source File: none Line: 0


"
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Shelby on 3/28/2012 12:37 AM
As a novice that cannot reach my web designer, can someone guide me through the process to get my default index page back up and running. I get the message above when trying to access the site. If someone will furnish me a contact number I will call them.
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Bhumika on 8/2/2012 9:45 PM
Thanks so much...
Gravatar # re: AJAX: Unknown server tag 'asp:ScriptManager'.
Posted by Carlos on 9/11/2012 12:36 AM
Thanks, solved my problem. But would you mind explain how did you get to this solution? I got curious.


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: