none
Unknown server tag 'asp:ScriptManager'.

    Question

  • All
    I migrated sites to a new server and has the following 2 errors pop up.

    1. Unknown server tag 'asp:ScriptManager'.
    2. The control type 'System.Web.UI.ScriptManager' is not allowed on this page. The type is not registered as safe.

    Here is what I did to resolve the issue.

    Add the follow to the web.config file to resolve the following errors when a page tries to display.
     
    Error Message: Unknown server tag 'asp:ScriptManager'.
    <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>
     
     
    Error Message: The control type system.Web.UI.ScriptManager' is not allowed on this page. The type is not registered as safe.
    <SafeControls>
            <SafeControl Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />
     
     
    Also, make sure that AJAX server extensions are installed. In this case, yours may be a little different, ASP.NET 2.0 AJAX Extensions 1.0 is what was needed to match the previous server. The name of the installation file is
    ASPAJAXExtSetup.msi

    Cheers
    Pete



    Friday, December 04, 2009 12:49 PM

All replies

  • can you please specify, at which location(in web.config) I should add the following ? [I mean under which section/tag]

    Error Message: The control type system.Web.UI.ScriptManager' is not allowed on this page. The type is not registered as safe.
    <SafeControls>
            <SafeControl Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TypeName="*" Safe="True" />


    HaQ

    Monday, April 02, 2012 1:40 PM
  • Uzwa,

    Please have a look at the snapshot illustrated below,






    Talib Ali Khan | SharePoint Specialist | MCTS | http://www.onlineasp.net



    Wednesday, April 04, 2012 6:36 AM
  • Thanks

    HaQ

    Wednesday, April 04, 2012 10:06 AM
  • Please post the result of your query after making this change.





    Talib Ali Khan | SharePoint Specialist | MCTS | http://www.onlineasp.net

    Wednesday, April 04, 2012 10:51 AM

  • HaQ

    Monday, April 09, 2012 3:59 PM
  • Its working.

    HaQ

    Monday, April 09, 2012 3:59 PM