Solved

Problems with the latest version of the AJAX Toolkit and the HTMLEditorExtender

Posted on 2013-05-15
4
1,186 Views
Last Modified: 2013-07-17
Hi I'm really struggling with this installation being a mere developer!  Everything looks ok until I try to run the file with it in.  Searching around I'm told I need the sanitizer so I add the code for it to the web.config and then I get:

Could not load type 'AjaxControlToolkit.Sanitizer.
              AntiXssSanitizerProvider'.

When I google the error, I'm told I need the HtmlAgilityPack, so I installed that using NuGet and now I get:

InnerException: System.Web.HttpException
       Message=Could not load type 'AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider'.

I have even commented out all the HTMLEditorExtender code so why am I getting this error?  I have added all the appropriate code to the web.config (as attached) and there is a folder in my bin called 'SanitizerProviders' which holds the HTMLAgilityPack.dll and SanitizerProviders.dll file.  Do I have to add any references anywhere else for this not to throw an error??  I haven't had much experience with .dlls so please, please advise what is wrong.

I'm using Web Developer Express 2010.
webconfig.txt
0
Comment
Question by:Lorna70
  • 2
4 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 39170463
0
 

Author Comment

by:Lorna70
ID: 39170764
Not for AJAX - will nuget install the agility pack etc with AJAX?  Will that solve my problem do you think?
0
 

Author Comment

by:Lorna70
ID: 39221644
That didn't solve my problem so posted question in nuget forum - no response though and that was on the 16th.  So I've abandoned using the HTMLEditorExtender for now :-(
0
 
LVL 23

Accepted Solution

by:
Roopesh Reddy earned 250 total points
ID: 39233372
Hi,

You can try installing AjaxControlToolKit from Nuget - http://roopeshreddy.wordpress.com/2012/10/07/installingconfiguring-ajaxcontroltoolkit-through-nuget/

which installs the latest version of AjaxControlToolKit.

Also, you can try CkEditor - http://ckeditor.com/

Hope it helps u...
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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

929 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

11 Experts available now in Live!

Get 1:1 Help Now