asp.net - Ajax htmlEditorExtender - Unrecognized element sanitizer -
hi i've downloaded latest version of ajax toolkit microsoft , i'm trying setup sanitizer htmleditorextender, keep getting following error when trying build site:
"unrecognized element 'sanitizer.'"
following guide on ajax site i've tried add following:
<compilation debug="true" strict="false" explicit="true" targetframework="4.0"> <sanitizer defaultprovider="antixsssanitizerprovider"> <providers> <add name="antixsssanitizerprovider" type="ajaxcontroltoolkit.sanitizer.antixsssanitizerprovider"></add> </providers> </sanitizer> <assemblies> <add assembly="system.design, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a"/> <add assembly="system.web.extensions.design, version=4.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35"/> <add assembly="system.windows.forms, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089"/> </assemblies> </compilation>
to web.config along with:
<sectiongroup name="system.web"> <section name="sanitizer" requirepermission="false" type="ajaxcontroltoolkit.sanitizer.providersanitizersection, ajaxcontroltoolkit"/> </sectiongroup>
i'm quite new asp.net , vb.net , i've never used ajax toolkit before. in bin folder have ajaxcontroltoolkit.dll installed when following instructions add toolkit controls toolbox.
is there i'm missing or need allow work correctly?
put <sanitizer>
tag directly after <system.web>
below:
<system.web> <sanitizer defaultprovider="htmlagilitypacksanitizerprovider"> <providers> <add name="htmlagilitypacksanitizerprovider" type="ajaxcontroltoolkit.sanitizer.htmlagilitypacksanitizerprovider"></add> </providers> </sanitizer>
use htmlagilitypacksanitizerprovider
antixsssanitizerprovider
referring post "using antixss default sanitizer no longer supported of june 2012. official announcement, apparantely new version of antixss breaks many things."
same goes <sectiongroup>
first tag after <configuration>
<configuration> <configsections> <sectiongroup name="system.web"> <section name="sanitizer" requirepermission="false" type="ajaxcontroltoolkit.sanitizer.providersanitizersection, ajaxcontroltoolkit"/> </sectiongroup> </configsections>
this solved case same error.
Comments
Post a Comment