Avatar of webski
webski
 asked on

Getting an error when adding elements in AjaxControlToolkit.config file to ASP.NET project

I am trying to add a file - AjaxControlToolkit.config to the root of the application in ASP.NET and when i type in the first tag <ajaxControlToolkit> it gives me an error saying the element is not declared.  I tried to build and rebuild the project but no luck. Do i need to declare something in the web.config. i added CombineScriptsHandler.axd in the web.config.
All the ajax controls work as expected when i run the project but i wanted to speed it up a bit by creating the ajaxControlToolkit.config file but i can`t.
Am i missing something?

Thanks for your reply
Web Languages and Standards.NET Programming

Avatar of undefined
Last Comment
Bob Learned

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Bob Learned

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
webski

ASKER
I did a tracing on the project and when i run the first time it gives me the same time loading all events as before i include the AjaxControlToolkit.config file hence not sure if it`s effective.

All i have in that config file is

<ajaxControlToolkit>
  <controlBundles>
    <controlBundle name="ajaxTools">
      <control name="Accordion"></control>
      <control name="AlwaysVisibleControlExtender"></control>
      <control name="ModalPopupExtender"></control>
    </controlBundle>
  </controlBundles>
</ajaxControlToolkit>

and then assigning the control bundle in the toolscriptmanager as:

<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" EnableCdn="true" EnablePartialRendering="false" runat="server">
            <ControlBundles>
                <ajaxToolkit:ControlBundle Name="ajaxTools" />
            </ControlBundles>
        </ajaxToolkit:ToolkitScriptManager>


Is this correct?     ...Thanks for your reply ...
Bob Learned

If you are asking if the bundling configuration looks correct, then I believe that it is correct.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes