Solved

Unknown server tag 'ajaxToolkit:toolkitscripmanager'

Posted on 2016-09-30
6
41 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
  • 3
  • 3
6 Comments
 
LVL 42

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 42

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
3 Use Cases for Connected Systems

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

 

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 42

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

864 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now