Solved

Unknown server tag 'ajaxToolkit:toolkitscripmanager'

Posted on 2016-09-30
6
47 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

803 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