AJAX: Element ScriptManager is not a known element

If you moved from ATLAS to the new ASP.NET AJAX Beta1 you might encounter that kind of problem, all other controls are affected as well like Element ‘UpdatePanel’ is not a known element.

To get around this issue you have to change the tagPrefix in your web.config:
Old:

   <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"/>
        </controls>

New:

   <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"/>
        </controls>

This works as a temporary fix, this issue will be addressed in the next release of ASP.NET AJAX Beta.

hth

10 comments ↓

#1 Marinus on 12.08.06 at 3:04 pm

Thank you so much!

#2 Andreas Brekken on 12.11.06 at 8:55 am

Thank you!

#3 Mark Kamoski on 12.13.06 at 10:07 pm

The tip helped. It got rid of some of the issues. However, there is still an error that says “Could not load file or Assembly ‘Microsoft.Web.Preview’ or one of its dependencies. The system cannot find the file specified” which is still unresolved. Do you have any suggestions? Please advise. Thank you. — Mark Kamoski

#4 andreas.kraus on 12.14.06 at 7:37 am

Hello Mark, the file is usually put into the GAC, if you deploy your project and didn’t install the AJAX Extensions on the webserver you have to include those .dlls in your bin folder of your project.

hth

#5 Darrel on 01.29.07 at 6:44 pm

I know it’s still a BETA but this seems like a rather huge bug to slip through. Not being able to compile an app out of the box seems like a rather large hurdle.

Anwyays, thanks for the tip! I was stumped on this.

#6 Swaminathan on 02.09.07 at 6:40 pm

Thanks for the great tip.

#7 Jinny on 04.02.07 at 1:18 pm

Thanks,

This is great … I hate that the intellisense doesn’t work due to this problem ^^

fixed

#8 Sajid Riaz on 07.20.07 at 10:42 am

After changing the config file as above, I receive the following errors for my website which uses masterpages:
Error 34 C:\sajid\projects\website\VickyAjax\Default.aspx: ASP.NET runtime error: Only one element allowed per config file and if present must be the first child of the root element. (C:\sajid\projects\website\VickyAjax\web.config line 14) C:\sajid\projects\website\VickyAjax\Default.aspx 1 1 C:\…\VickyAjax\

#9 dimitris on 07.29.07 at 1:12 pm

thx a lot, that really helped.

#10 Balamurugan Ranganathan on 09.24.08 at 7:28 am

thank you so much.

Leave a Comment