FIX: ASP.NET AJAX- Element 'ScriptManager' is not a known element

Published 27 October 06 06:46 PM | jindar

I had quite a few problems with ASP.NET Ajax today when I was converting some of my pages in my new product over to Beta 1 because I kept getting "Element 'XXXXXX' is not a know element" in the source viewer.  The designer was also freaking out on me and changing my source HTML! I felt like I was using the Visual Studio 2003 designer again!  Talk about a flashback...

Here's the fix:

Change this in your web.config:

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

to this:

<controls>
        <add tagPrefix="ajax" namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add tagPrefix="ajax" namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        <add tagPrefix="ajax" namespace="Microsoft.Web.Preview.UI" assembly="Microsoft.Web.Preview"/>
        <add tagPrefix="ajax" namespace="Microsoft.Web.Preview.UI.Controls" assembly="Microsoft.Web.Preview"/>
 </controls>

 This should be fixed in the next version of the Beta.  Please note that I am using the CTP web.config configuration.  Wheew that was a close one, I was about ready to eat my own monitor.

Filed under: , , ,

Comments

# The Stable Scatterbrain : FIX: ASP.NET AJAX- Element 'ScriptManager' is not a known element said on October 27, 2006 08:06 PM:

PingBack from http://weblogs.asp.net/shenderson/archive/2006/10/27/FIX_3A00_-ASP.NET-AJAX_2D00_-Element-_2700_ScriptManager_2700_-is-not-a-known-element.aspx

# vikram said on October 28, 2006 01:01 AM:

Yes I have heard of many bugs in this BETA. version

# jindar said on October 28, 2006 08:36 PM:

So far I'm not having too many problems.  I'm actually really excited about the changes that the ASP.NET AJAX team made.  I think the library has come a long way since the beginning of the year.

# Eric said on November 13, 2006 10:31 PM:

Thanks for this tip!  I was getting very frustrated with my first foray into Ajax until I found your fix.  I'm sure lots of developers are running into this - you think it would be better documented.  Thanks again.

# jindar said on November 14, 2006 10:47 AM:

Eric:

Glad to help!  There may be another workaround that I'm not aware of but so far I haven't seen one.  Even in Beta 2 they recommend using the asp script tag...which still didn't work...

# Phil said on November 21, 2006 01:56 PM:

All I can say is thank you for helping to preserve some part of my sanity today.