title: The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'System.Web.UI.WebControls'
body: <p>I am getting the following errors</p>
  
  <pre><code>  The type or namespace name 'ToolkitScriptManager' does not exist in the namespace 'System.Web.UI.WebControls' (are you missing an assembly reference?)  
    The type or namespace name 'ModalPopupExtender' does not exist in the namespace 'System.Web.UI.WebControls' (are you missing an assembly reference?)  
    The type or namespace name 'Accordion' does not exist in the namespace 'System.Web.UI.WebControls' (are you missing an assembly reference?)   
  </code></pre>
  
  <p>I have installed ajaxControlToolKit already and I have this in my web.config file</p>
  
  <pre><code>&lt;pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"&gt;&lt;controls&gt;
      &lt;add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /&gt;
    &lt;/controls&gt;&lt;/pages&gt;
  </code></pre>
  
  <p>My .aspx page</p>
  
  <pre><code> &lt;%@ Page Language="C#" AutoEventWireup="true"       CodeBehind="PaintBrushCanvas.aspx.cs" Inherits="VirtualClassroom.PaintBrushCanvas" %&gt;
   &lt;%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %&gt;
   &lt;!DOCTYPE html&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
  &lt;title&gt;Paint Brush&lt;/title&gt;
   &lt;style type="text/css"&gt;
    #container { position: relative; overflow: auto; scrollbar-base-color:#ffeaff;  }
    #imageView { border: 1px dashed #CCCCCC; margin: 5px; border-style: dotted; border-width: 1px; background-color: #FFFFFF; vertical-align: top;  }
    #imageTemp { position: absolute; top: 1px; left: 1px; margin: 5px; }
    #imageTempt { position: absolute; top: 1px; left: 1px; margin: 5px; }
  &lt;/style&gt;
  &lt;link href="../StyleSheet.css" rel="stylesheet" type="text/css" /&gt;   
  &lt;script type="text/javascript" src="CanvasUtils.js"&gt;&lt;/script&gt;
  
   &lt;script type="text/javascript"&gt;
      window.moveTo(0, 0);
      window.resizeTo(screen.width, screen.height);
   &lt;/script&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>
      </p>
  
  <pre><code>&lt;asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnablePageMethods="true"&gt;
  &lt;/asp:ToolkitScriptManager&gt;
  &lt;asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BehaviorID="MPBehaviorIDOpen" 
      TargetControlID="btnPopupRender" PopupControlID="panelOpen" BackgroundCssClass="modalBackground"
      PopupDragHandleControlID="panelOpenHead" OkControlID="btnOKOpen" CancelControlID="btnCancelOpen" /&gt; 
  &lt;asp:ModalPopupExtender ID="ModalPopupExtender2" runat="server" BehaviorID="MPBehaviorIDResize" 
      TargetControlID="btnPopupRender" PopupControlID="panelPageSize" BackgroundCssClass="modalBackground"
      PopupDragHandleControlID="panelPageSizeHead" OkControlID="btnPageSizeOK" CancelControlID="btnPageSizeCancel" /&gt; 
  
  &lt;div&gt;
      &lt;asp:Button id="btnPopupRender" Height="0px" Width="0px" runat="server" style="display:none;" /&gt;
  &lt;/div&gt;
  &lt;table style="height: 100%; vertical-align: top; width: 100%;"&gt;
      &lt;tr&gt;
          &lt;td style="height: 100%; vertical-align: top;"&gt;
              &lt;asp:Accordion ID="MyAccordion" runat="server" SelectedIndex="0" 
                                  HeaderCssClass="accordionHeader" ContentCssClass="accordionContent" 
                                  FadeTransitions="true" FramesPerSecond="40" TransitionDuration="250"
                                  AutoSize="None" CssClass="accordionStyle" Width="140"&gt;
               &lt;Panes&gt;
                  &lt;asp:AccordionPane ID="AccordionPane1" runat="server"&gt;
                    &lt;Header&gt;Toolbox&lt;/Header&gt;
                    &lt;Content&gt;
                      &lt;asp:ImageButton ID="btnOpen" runat="server"  Width="40px" Height="40px"
                                     OnClientClick="ShowPopup(event,'MPBehaviorIDOpen'); return false;" ImageUrl="~/Images/open.png" /&gt;&lt;br /&gt;
                      &lt;asp:Label ID="Label1" runat="server" Text="Open"&gt;&lt;/asp:Label&gt;&lt;br /&gt; &lt;br /&gt;
                      &lt;asp:ImageButton ID="btnPageSize" runat="server"  Width="40px" Height="40px"
                                     OnClientClick="ShowPopup(event,'MPBehaviorIDResize'); return false;" ImageUrl="~/Images/paperSettings.png" /&gt;&lt;br /&gt;
                      &lt;asp:Label ID="Label5" runat="server" Text="Page Size"&gt;&lt;/asp:Label&gt;&lt;br /&gt; &lt;br /&gt;
                      &lt;asp:ImageButton ID="btnDraw" runat="server"  Width="40px" Height="40px" 
                                     OnClientClick="SelectTool('pencil'); return false;" ImageUrl="~/Images/draw.png" /&gt;&lt;br /&gt;
                      &lt;asp:Label runat="server" Text="Draw"&gt;&lt;/asp:Label&gt;&lt;br /&gt;&lt;br /&gt;
                      &lt;asp:ImageButton ID="btnText" runat="server" Width="40px" Height="40px" 
                                     OnClientClick="SelectTool('text'); return false;" ImageUrl="~/Images/text.png" /&gt;&lt;br /&gt;
                      &lt;asp:Label ID="Label2" runat="server" Text="Text"&gt;&lt;/asp:Label&gt;&lt;br /&gt;&lt;br /&gt;
                      &lt;asp:ImageButton ID="btnLine" runat="server" Width="40px" Height="40px" 
                                     OnClientClick="SelectTool('line'); return false;" ImageUrl="~/Images/line.png" /&gt;&lt;br /&gt;
                      &lt;asp:Label runat="server" Text="Line"&gt;&lt;/asp:Label&gt;&lt;br /&gt;&lt;br /&gt;
                      &lt;asp:ImageButton ID="btnSquare" runat="server" Width="40px" Height="40px" 
                                     OnClientClick="SelectTool('rect'); return false;" ImageUrl="~/Images/square.png" /&gt;&lt;br /&gt;
                      &lt;asp:Label runat="server" Text="Square"&gt;&lt;/asp:Label&gt;&lt;br /&gt;&lt;br /&gt;
                      &lt;asp:ImageButton ID="btnSave" runat="server" Width="40px" Height="40px" 
                                      OnClientClick="SaveDrawings();return false;"  ImageUrl="~/Images/save.png" /&gt;&lt;br /&gt;
                      &lt;asp:Label ID="Label11" runat="server" Text="Save"&gt;&lt;/asp:Label&gt;&lt;br /&gt;&lt;br /&gt;
                      &lt;asp:ImageButton ID="btnExit" runat="server" Width="40px" Height="40px" 
                                      OnClientClick="Exit();return false;"  ImageUrl="~/Images/exit.png" /&gt;&lt;br /&gt;
                      &lt;asp:Label ID="Label3" runat="server" Text="Exit"&gt;&lt;/asp:Label&gt;&lt;br /&gt;&lt;br /&gt;
                    &lt;/Content&gt;
                  &lt;/asp:AccordionPane&gt;
               &lt;/Panes&gt;
              &lt;/asp:Accordion&gt;
          &lt;/td&gt;
          &lt;td style="height: 100%; vertical-align: top; "&gt;
              &lt;div id="container"&gt;
                  &lt;canvas id="imageView"&gt;&lt;/canvas&gt; 
              &lt;/div&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;div id="panelOpen" class="modalPopup" style="display:none;"&gt;
      &lt;div id="panelOpenHead" class="popupHeader"&gt;
          &lt;p&gt;Choose File&lt;/p&gt;
      &lt;/div&gt;
      &lt;div style="text-align:center;"&gt;
          &lt;p&gt;
              &lt;input id="fileUploadImg" type="file" accept="image/*"  /&gt;
          &lt;/p&gt;
          &lt;p&gt;
              &lt;input type="button" id="btnOKOpen" value="OK" onclick="UpdateCanvas(); return false;" /&gt;
              &lt;input type="button" id="btnCancelOpen" value="Cancel" /&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div id="panelPageSize" class="modalPopup" style="display:none;"&gt;
      &lt;div id="panelPageSizeHead" class="popupHeader"&gt;
          &lt;p&gt;Page Size&lt;/p&gt;
      &lt;/div&gt;
      &lt;div style="text-align:center;"&gt;
          &lt;p&gt;
              Enter Width: &lt;input type="text" id="txtWidth" style="width:100px;" /&gt; px
          &lt;/p&gt;
          &lt;p&gt;
              Enter Height: &lt;input type="text" id="txtHeight" style="width:100px;" /&gt; px
          &lt;/p&gt;
          &lt;p&gt;
              &lt;input type="button" id="btnPageSizeOK" value="OK" onclick="Resize(); return false;" /&gt;
              &lt;input type="button" id="btnPageSizeCancel" value="Cancel" /&gt;
          &lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;/form&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my web.config file</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;!--
   For more information on how to configure your ASP.NET application, please    visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    --&gt;
  
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name="system.web.extensions"      type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
    &lt;sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
      &lt;section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;
      &lt;sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;
        &lt;section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/&gt;
        &lt;section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;
        &lt;section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;
        &lt;section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;
      &lt;/sectionGroup&gt;
    &lt;/sectionGroup&gt;
  &lt;/sectionGroup&gt;
  &lt;/configSections&gt;
  &lt;connectionStrings&gt;
    &lt;add name="DBCS" connectionString="data source=.; database=xxx; integrated    security=SSPI" providerName="System.Data.SqlClient" /&gt;
   &lt;/connectionStrings&gt;
  
  
   &lt;system.web&gt;
     &lt;compilation debug="true" targetFramework="4.5" /&gt;
      &lt;authentication mode="Forms"&gt;
      &lt;forms loginUrl="SelectUser.aspx" defaultUrl="SelectUser.aspx" /&gt;
      &lt;/authentication&gt;
      &lt;authorization&gt;
      &lt;deny users="?" /&gt;
     &lt;/authorization&gt;
      &lt;membership&gt;
       &lt;providers&gt;
         &lt;clear /&gt;
         &lt;add name="AspNetSqlMembershipProvider"    type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/" /&gt;
      &lt;/providers&gt;
     &lt;/membership&gt;
     &lt;profile&gt;
      &lt;providers&gt;
      &lt;clear /&gt;
       &lt;add name="AspNetSqlProfileProvider"   type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/" /&gt;
    &lt;/providers&gt;
    &lt;/profile&gt;
    &lt;roleManager enabled="false"&gt;
      &lt;providers&gt;
       &lt;clear /&gt;
        &lt;add name="AspNetSqlRoleProvider"   type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/" /&gt;
      &lt;add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/" /&gt;
    &lt;/providers&gt;
  &lt;/roleManager&gt;
    &lt;pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"&gt;&lt;controls&gt;
        &lt;add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /&gt;
       &lt;add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
      &lt;/controls&gt;&lt;/pages&gt;
    &lt;/system.web&gt;
       &lt;system.webServer&gt;
          &lt;modules runAllManagedModulesForAllRequests="true" /&gt;
         &lt;/system.webServer&gt;
          &lt;assemblies&gt;
  
         &lt;add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral,      PublicKeyToken=B77A5C561934E089"/&gt;
  
         &lt;add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/&gt;
  
           &lt;add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&gt;
  
        &lt;add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&gt;
       &lt;/assemblies&gt;
        &lt;runtime&gt;
          &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
          &lt;dependentAssembly&gt;
           &lt;assemblyIdentity name="Microsoft.Owin"        publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /&gt;
      &lt;/dependentAssembly&gt;
     &lt;dependentAssembly&gt;
       &lt;assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
      &lt;bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /&gt;
       &lt;/dependentAssembly&gt;
         &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" /&gt;
        &lt;bindingRedirect oldVersion="0.0.0.0-2.1.0.4" newVersion="2.1.0.4" /&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
      &lt;assemblyIdentity name="HtmlAgilityPack" publicKeyToken="bd319b19eaf3b43a" culture="neutral" /&gt;
       &lt;bindingRedirect oldVersion="0.0.0.0-1.4.9.0" newVersion="1.4.9.0" /&gt;
       &lt;/dependentAssembly&gt;
      &lt;/assemblyBinding&gt;
          &lt;/runtime&gt;
     &lt;/configuration&gt;
  </code></pre>
  
  <p>I have goggled out to get rid of this error but I cant.Please help.Thanks in advance!!</p>