Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Unknown server tag 'ajaxToolkit:toolkitscripmanager'

Posted on 2016-09-30
6
Medium Priority
?
79 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 44

Accepted Solution

by:
zephyr_hex (Megan) earned 2000 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 44

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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

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 44

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

The most up-to-date version of this article is on my Blog https://iconoun.com/blog/
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

916 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