7
Reply

Unknown server tag 'asp:ScriptManager'.

Abhimanyu K Vatsa

Abhimanyu K Vatsa

Apr 23 2011 11:16 AM
14.6k
I am using Ajax Controls and when I run my site getting following error:
Unknown server tag 'asp:ScriptManager'.
Unknown server tag 'asp:UpdatePanel'.
Unknown server tag 'asp:UpdatePanel'.

When I searched on google about this error, most of the article saying to use the code given below:

--------------------------------
<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>
-------------------------------

After using above code in config file I am still getting more errors as given below:

------------------------------
The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

The type or namespace name 'AsyncPostBackTrigger' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

The type or namespace name 'ScriptManager' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

The type or namespace name 'ScriptManager' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

The type or namespace name 'UpdatePanel' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

The type or namespace name 'UpdatePanel' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

The type or namespace name 'UpdatePanel' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

The type or namespace name 'UpdatePanel' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)

The type or namespace name 'UpdatePanelTriggerCollection' does not exist in the namespace 'System.Web.UI' (are you missing an assembly reference?)
---------------------------------

Do I have to add some lines in Default.aspx page like given below or some namespaces:

<%@ Register TagPrefix="cc" Namespace="Winthusiasm.HtmlEditor" Assembly="Winthusiasm.HtmlEditor" %>


One more markable thing when I use <compilation debug="true" targetFramework="4.0" /> in cofig file it solves all errors. But my hosting company provides 3.5 extension.  

How I fix this issue, please help.
Thanks in advance.

Answers (7)