Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Issue: HTMLEditorExtender HtmlAgilityPackSanitizerProvide web.config [27236]

$
0
0
I am having trouble with adding the required text to the web.config file for the HtmlAgilityPackSanitizerProvider. Even when I open the sample site from the toolkit in Visual Web Developer I get an error.
The element 'system.web' has an invalid child element 'sanitizer'.
Not sure how to get this to work.

This is the section of the toolkit sample site:
<configuration>
<configSections>
<sectionGroup name="system.web">
<section name="sanitizer" requirePermission="false"
type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection, AjaxControlToolkit" />
</sectionGroup>
</configSections>
<appSettings/>
<connectionStrings/>
<system.web>
<trust level="Full" />
<sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider">
<providers>
<add name="HtmlAgilityPackSanitizerProvider" type="AjaxControlToolkit.Sanitizer.HtmlAgilityPackSanitizerProvider"></add>
</providers>
</sanitizer>
Comments: I tried moving the sanitizer section out of the <system.web> and get the "Sanitizer provider is not configured in the web.config file. If you are using the HtmlEditorExtender with a public website then please configure a Sanitizer provider. Otherwise, set the EnableSanitization property to false." message. It should be easier but I can't figure it out. :-(

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>