Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 98
  • Last Modified:

Unknown server tag 'ajaxToolkit:toolkitscripmanager'

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
MariaHalt
Asked:
MariaHalt
  • 3
  • 3
1 Solution
 
zephyr_hex (Megan)DeveloperCommented:
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
 
zephyr_hex (Megan)DeveloperCommented:
Did you have the chance to see if this resolved your problem?
0
 
MariaHaltAuthor Commented:
I uninstalled the nugget package and copied the dll from the trunk, but am still getting the same error.  Any thoughts?
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
MariaHaltAuthor Commented:
Got it working!  In addition to your #2 solution, I had to change the TagPrefix from "cc1" to "ajaxToolKit".
Thank you!
0
 
MariaHaltAuthor Commented:
Thank you for the quick response and checking in on me!
0
 
zephyr_hex (Megan)DeveloperCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now