Geeks With Blogs

News
The Wrecking Bawl Destructuring query language, one keyword at a time.

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 all tech stuff , C# | Back to top


Comments on this post: AJAX: Unknown server tag 'asp:ScriptManager'.

# 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

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by abhishek on Dec 14, 2008 6:40 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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>
Left by jsimhan on Jan 05, 2009 4:36 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
We had the same problem it worked like a charm!
Left by webdesign @ PK on Feb 03, 2009 7:26 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Hi, Thanks man, its sorted out my problem
Left by Gane on Feb 05, 2009 7:40 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
adding AjaxControlToolkit.dll in your bin folder. build your project in .net framework 3.5 mode
Left by osman kasapoğlu on Feb 18, 2009 1:11 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
thnks it really good.it is stret forward solution.i like this article
Left by priyanka on Feb 25, 2009 6:36 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
an unhealthy amount of time
Left by Vito on Mar 18, 2009 2:40 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
<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.
Left by Ashandra Singh on Apr 05, 2009 10:52 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
the solution is

with in this tag

add this assembly code.

<pages>

<controls>

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

</controls>

</pages>
Left by suri on May 05, 2009 12:11 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by Raj on May 20, 2009 6:19 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by Anders on Jun 05, 2009 6:32 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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!
Left by Marcel Bradea on Jul 08, 2009 11:39 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Great tip, works in SharePoint as well.
Left by Kam on Jul 09, 2009 4:56 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by Dhivya on Jul 27, 2009 12:37 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Hi
Thanks a lot
Great script
Left by Tatoba on Aug 05, 2009 11:18 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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>
Left by Gilda on Aug 18, 2009 9:02 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thank YOU! Works perfectly...would've taken me days to figure this one out myself
Left by Esther on Sep 16, 2009 12:54 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thank YOU!
Left by Yeny on Sep 19, 2009 5:18 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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?
Left by Omar Diaz on Oct 05, 2009 11:57 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thanks. That saved me at least an hour...
Left by dev_interview on Oct 12, 2009 8:23 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
My heartly thnaks to you dude. you made my day.
Left by Harish Vajja on Oct 15, 2009 11:28 AM

# DAVETİYECİ
Requesting Gravatar...
güzel davetiye sözleri ve davetiye metinleri
Left by DAVETİYE on Oct 30, 2009 7:49 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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.
Left by techincal_interview on Nov 01, 2009 4:26 PM

# davetiye,davetiye sözleri
Requesting Gravatar...
düğün davetiyesi ve davetiye sözleri
Left by davetiyei on Nov 18, 2009 12:33 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Hi. I can not use the web.config file. Is there any possibility to make the same declaration in the main ASPX page?
Left by goldengel on Nov 24, 2009 1:41 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Still its giving error... I have checked in add reference ... there is no any sysetm.web.extension library ... what to do? pls help
Left by Mihir on Dec 09, 2009 5:16 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
thanks dude, u saved me :)
Left by burhan on Feb 14, 2010 8:34 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Go to www.sevensimplemachines.com if you want to contract developers for more expert solutions such as the one above.
Left by AlB on Mar 19, 2010 7:41 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
this error can also be fixed by installing (or reinstalling) the ASPAJAXExtSetup.msi package. (MS ASP.NET 2.0 AJAX extenstions 1.0)
Left by Joe Blow on Mar 21, 2010 6:10 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by HaterTot on Mar 22, 2010 1:21 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thank you very much. it's working
Left by Pradheepkumar on May 21, 2010 11:21 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thanks alot
it really helped alot
Left by Amit A Vimal on May 24, 2010 6:34 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
asp:scriptmanager instance is not present. for timer control it requires scriptmanager. what should i do??
Left by Gauree on Jun 01, 2010 11:55 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
it worked man (Y) thanks
Left by faheem on Oct 10, 2010 8:10 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
thanx...it really worked...:)
Left by utkarsh on Oct 22, 2010 7:34 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thank you so much for this! I've been pulling my hair out all bloody day over this problem! Brilliant!
Left by Ash Robbins on Oct 26, 2010 3:52 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by WLBlakeshaw on Oct 27, 2010 9:06 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
I am not able to add ScriptManager control in C# 2008.
Error: Error creating control ScriptManager1
Left by Ashish on Oct 31, 2010 4:41 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thank You!
Left by Shilpa on Nov 02, 2010 6:03 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thank you for sharing this, it solved my problem!
Left by Website laten maken on Dec 03, 2010 2:27 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
it worked! thanks!
Left by Isha on Jan 11, 2011 6:47 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Its all about the trust level if i understand correct its easy to solve with this solution.
Left by erd on Jan 18, 2011 3:48 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Works perfectly. Thanks a lot!
Left by Rosch on Feb 10, 2011 12:51 AM

# Parser Error Message: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by Vincent on Apr 05, 2011 11:04 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
thanks a lot
Left by Je on May 01, 2011 7:14 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
thanks a lot dude
Left by Je on May 01, 2011 7:14 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
thank you it was of great help
Left by Orcy on Jun 01, 2011 11:18 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by 7 inch lcd monitor on Jul 07, 2011 8:19 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
This solved my problem ..great tip ..wonder why vs2010 doesnt include this in the config by default
Left by showme on Aug 27, 2011 7:30 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Worked for me too!
Left by AF on Sep 14, 2011 1:32 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
It works very well. You make me save so much time.
Left by Maestrodabla on Sep 23, 2011 7:19 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thanks it solved my problem
Left by bhagirathi on Oct 10, 2011 11:41 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Nice blog. Please keep posting and i'll will keep visiting this blog very often.
Left by Website laten maken on Oct 12, 2011 3:43 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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
Left by Freelance PHP on Oct 24, 2011 12:07 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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


"
Left by Ahmed Ali on Oct 24, 2011 2:06 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
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.
Left by Shelby on Mar 28, 2012 12:37 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thanks so much...
Left by Bhumika on Aug 02, 2012 9:45 PM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thanks, solved my problem. But would you mind explain how did you get to this solution? I got curious.

Left by Carlos on Sep 11, 2012 12:36 AM

# re: AJAX: Unknown server tag 'asp:ScriptManager'.
Requesting Gravatar...
Thansk a lot!
Left by Jacobo CAno on Jun 08, 2015 7:11 AM

Your comment:
 (will show your gravatar)


Copyright © Alex Bransky | Powered by: GeeksWithBlogs.net