Unrecognized tag prefix or device filter (Visual Studio 2010)


Jul 21, 2011
Reaction score
I am trying my hands on Visual Studio 2010 (Asp.Net 4.0) for the first time. I want to use Ajax controls, mainly ComboBox control.

I followed the step-by-step procedure mentioned in this link to download and install AjavControlToolkit.

I also followed this link for steps to add ComboBox to my webpage.

But no matter what I do, there is a green line under the control and I'm getting the error "Unrecognized tag prefix or device filter 'ajax'".

My web.config file looks like this:

            <add tagPrefix="ajax" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
            <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    <compilation debug="true" targetFramework="4.0">
            <add assembly="System.Web.Extensions.Design, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add assembly="System.Design, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
            <add assembly="System.Windows.Forms, Version=, Culture=neutral, PublicKeyToken=B77A5C561934E089"/></assemblies></compilation>

The aspx page looks like this:

<form id="form1" runat="server">
        <asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager>
        <ajax:ComboBox runat="server" AutoCompleteMode="SuggestAppend">

I have even tried deleting the schema files from C:\Documents and Settings\xxx\Application Data\Microsoft\VisualStudio\10.0\ReflectedSchemas location.

Please help me in successfully implementing the Combobox control. Thanks!


As a different approach, I created a new website and installed the latest version of AjaxControlToolkit using NuGet. I rebuilt the solution. I still could not see the Ajax controls in intellisense. Is there anything else that needs to be done to implement it? Please help!!


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question