Error installing AJAX Toolkit

Topics: General
May 16, 2013 at 10:55 AM
Hi I had originally downloaded the AJAX Toolkit from Codeplex (didn't use nuget to install) I then installed the HTMLAgilityPack using nuget but got:
InnerException: System.Web.HttpException
   Message=Could not load type 'AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider'.
Someone in a Forum suggested I try again using nuget for the AJAX Toolkit and that would also install the Sanitizers. Brilliant I thought except but AJAX won't install and now I get the following error:

PM> Install-Package AjaxControlToolkit
'AjaxControlToolkit 7.0429' already installed.
Adding 'AjaxControlToolkit 7.0429' to Design-WOW.
Value does not fall within the expected range.
Value does not fall within the expected range.
Value does not fall within the expected range.
Uninstalling 'AjaxControlToolkit 7.0429'.
Successfully uninstalled 'AjaxControlToolkit 7.0429'.
Install-Package : Failed to add reference to 'AjaxControlToolkit'.
At line:1 char:16
  • Install-Package <<<< AjaxControlToolkit
    • CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
    • FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
PM>

I restarted Visual Web Developer Express 2010 and tried running the command again but still I get the same error. Could there still be some references to the AJAX Toolkit from my first installation and how do I remedy this??