Solved

Unknown server tag 'ajaxToolkit:toolkitscripmanager'

Posted on 2016-09-30
6
53 Views
Last Modified: 2016-10-04
Well, this is embarassing.  I've inherited a VS2012 asp.net (vb) web app.  I wanted to use the ModalPopupExtender control.  There was nothing in the toolbox, so I right clicked on the Solution -> Manage NuGet Packages -> Online -> Installed Ajax Control Toolkit.

I then added a tab to the toolbox, called it Ajax Control Toolkit.  To this, I right-clicked chose Add Items, I browsed to the bin folder, and selected the AjaxControlToolkit.dll.

I then dropped a ModalPopupExtender in the designer.   I added some code and saved it.  I wanted to test it and now the website won't build.  There are 2 similar errors from 2 other pages regarding the ajaxToolkit, specifically, the errors state:  Unknown server tag 'ajaxToolkit:toolkitscriptmanager' .  Apparently the ajaxtoolkit was used on a couple of other pages at some time, not by me.  

I compared the 2 error causing files between my local folder and the dev folder and they are both identical.  So, I'm not missing any reference.  I compared web.config files too, and they are identical.

I wouldn't have done the installation if I had seen the AjaxToolkit in the toolbox in the first place.  My question is "What can I do to get it to build again"?

Please provide detailed help!  Thank you!!!
0
Comment
Question by:MariaHalt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 43

Accepted Solution

by:
zephyr_hex (Megan) earned 500 total points
ID: 41824288
This happened to me just the other day.
The problem, for me, turned out to be that the other pages were making references to the AJAX Control Toolkit using legacy syntax.  In other words, the other pages depended on an older version of the toolkit.

So, there are two options
1 - Update the other pages to current syntax
or
2 - Uninstall the Nuget package and find a copy of the old .dll, and put that in the Bin folder of your solution.

I ended up using option 2 because I didn't want to step on other developer's toes.. and I didn't really want to go and test every page that references the toolkit using legacy syntax.  I couldn't find the older version of the toolkit via NuGet.
0
 
LVL 43

Expert Comment

by:zephyr_hex (Megan)
ID: 41827242
Did you have the chance to see if this resolved your problem?
0
 

Author Comment

by:MariaHalt
ID: 41828494
I uninstalled the nugget package and copied the dll from the trunk, but am still getting the same error.  Any thoughts?
0
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 

Author Comment

by:MariaHalt
ID: 41828554
Got it working!  In addition to your #2 solution, I had to change the TagPrefix from "cc1" to "ajaxToolKit".
Thank you!
0
 

Author Closing Comment

by:MariaHalt
ID: 41828555
Thank you for the quick response and checking in on me!
0
 
LVL 43

Expert Comment

by:zephyr_hex (Megan)
ID: 41828732
Glad you got it working.  I was pounding my head against my desk for the better half of a day trying to fix it.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question