vs 2012 express targetFramework=4.0
1
i have created a new website
2
instal from nuGet ajaxControlKit
3
add the following code to web config
<?xml version="1.0" encoding="utf-8"?><!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
--><configuration><configSections><sectionGroup name="system.web"><section name="sanitizer"
requirePermission="false"
type="AjaxControlToolkit.Sanitizer.ProviderSanitizerSection,
AjaxControlToolkit"/></sectionGroup></configSections><system.web><compilation debug="true" targetFramework="4.0"><assemblies><add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /></assemblies></compilation><pages><controls><add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" /></controls></pages><sanitizer defaultProvider="HtmlAgilityPackSanitizerProvider"><providers><add name="HtmlAgilityPackSanitizerProvider"
type="AjaxControlToolkit.Sanitizer.
HtmlAgilityPackSanitizerProvider"></add></providers></sanitizer></system.web></configuration>add the following code
<form id="form1" runat="server"><div><ajaxToolkit:ToolkitScriptManager runat="server" ID="x"></ajaxToolkit:ToolkitScriptManager><ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1"
TargetControlID="TextBox1" DisplaySourceTab="true"
runat="server"/><Toolbar> <ajaxToolkit:Undo /><ajaxToolkit:Redo /><ajaxToolkit:Bold /><ajaxToolkit:Italic /><ajaxToolkit:Underline /><ajaxToolkit:StrikeThrough /><ajaxToolkit:Subscript /><ajaxToolkit:Superscript /><ajaxToolkit:JustifyLeft /><ajaxToolkit:JustifyCenter /><ajaxToolkit:JustifyRight /><ajaxToolkit:JustifyFull /><ajaxToolkit:InsertOrderedList /><ajaxToolkit:InsertUnorderedList /><ajaxToolkit:CreateLink /><ajaxToolkit:UnLink /><ajaxToolkit:RemoveFormat /><ajaxToolkit:SelectAll /><ajaxToolkit:UnSelect /><ajaxToolkit:Delete /><ajaxToolkit:Cut /><ajaxToolkit:Copy /><ajaxToolkit:Paste /><ajaxToolkit:BackgroundColorSelector /><ajaxToolkit:ForeColorSelector /><ajaxToolkit:FontNameSelector /><ajaxToolkit:FontSizeSelector /><ajaxToolkit:Indent /><ajaxToolkit:Outdent /><ajaxToolkit:InsertHorizontalRule /><ajaxToolkit:HorizontalSeparator /><ajaxToolkit:InsertImage /></Toolbar></ajaxToolkit:HtmlEditorExtender></div></form>on the compiler i got 31 warnings as
Warning 21 Element 'UnSelect' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.
AND
Warning 35 The element 'system.web' has invalid child element 'sanitizer'. List of possible elements expected: 'anonymousIdentification, authentication, authorization, browserCaps, clientTarget, compilation, customErrors, deployment, deviceFilters, fullTrustAssemblies, globalization, healthMonitoring, hostingEnvironment, httpCookies, httpHandlers, httpModules, httpRuntime, identity, machineKey, membership, mobileControls, pages, partialTrustVisibleAssemblies, processModel, profile, roleManager, securityPolicy, sessionPageState, sessionState, siteMap, trace, trust, urlMappings, webControls, webParts, webServices, xhtmlConformance, caching'.
i have press the F5
Parser Error Message: Could not load type 'AjaxControlToolkit.Sanitizer.
HtmlAgilityPackSanitizerProvider'.
on the web.config i got the <sanitizer in blue underline
on nuget i have tried to instal the HtmlAgilityPack - but saying i got the latest version.
this is the output from nuGet installation
Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies. Package Manager Console Host Version 2.8.50313.31 Type 'get-help NuGet' to see all available NuGet commands. PM> Install-Package AjaxControlToolkit Attempting to resolve dependency 'AjaxMin (≥ 4.97.4951.28483)'. Attempting to resolve dependency 'HtmlAgilityPack (≥ 1.4.6)'. Attempting to resolve dependency 'WindowsAzure.Storage (≥ 2.1.0.3)'. Attempting to resolve dependency 'Microsoft.Data.OData (≥ 5.2.0)'. Attempting to resolve dependency 'System.Spatial (= 5.2.0)'. Attempting to resolve dependency 'Microsoft.Data.Edm (= 5.2.0)'. Attempting to resolve dependency 'Microsoft.WindowsAzure.ConfigurationManager (≥ 1.8.0.0)'. Installing 'AjaxMin 4.97.4951.28483'. Successfully installed 'AjaxMin 4.97.4951.28483'. Installing 'HtmlAgilityPack 1.4.6'. Successfully installed 'HtmlAgilityPack 1.4.6'. Installing 'System.Spatial 5.2.0'. You are downloading System.Spatial from Microsoft Corporation, the license agreement to which is available at http://go.microsoft.com/?linkid=9809688. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'System.Spatial 5.2.0'. Installing 'Microsoft.Data.Edm 5.2.0'. You are downloading Microsoft.Data.Edm from Microsoft Corporation, the license agreement to which is available at http://go.microsoft.com/?linkid=9809688. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'Microsoft.Data.Edm 5.2.0'. Installing 'Microsoft.Data.OData 5.2.0'. You are downloading Microsoft.Data.OData from Microsoft Corporation, the license agreement to which is available at http://go.microsoft.com/?linkid=9809688. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'Microsoft.Data.OData 5.2.0'. Installing 'Microsoft.WindowsAzure.ConfigurationManager 1.8.0.0'. You are downloading Microsoft.WindowsAzure.ConfigurationManager from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkID=235167. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'Microsoft.WindowsAzure.ConfigurationManager 1.8.0.0'. Installing 'WindowsAzure.Storage 2.1.0.3'. You are downloading WindowsAzure.Storage from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkId=235170. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device. Successfully installed 'WindowsAzure.Storage 2.1.0.3'. Installing 'AjaxControlToolkit 7.1213'. Successfully installed 'AjaxControlToolkit 7.1213'. Adding 'AjaxMin 4.97.4951.28483' to testingAntiXSS. Successfully added 'AjaxMin 4.97.4951.28483' to testingAntiXSS. Adding 'HtmlAgilityPack 1.4.6' to testingAntiXSS. Successfully added 'HtmlAgilityPack 1.4.6' to testingAntiXSS. Adding 'System.Spatial 5.2.0' to testingAntiXSS. Successfully added 'System.Spatial 5.2.0' to testingAntiXSS. Adding 'Microsoft.Data.Edm 5.2.0' to testingAntiXSS. Successfully added 'Microsoft.Data.Edm 5.2.0' to testingAntiXSS. Adding 'Microsoft.Data.OData 5.2.0' to testingAntiXSS. Successfully added 'Microsoft.Data.OData 5.2.0' to testingAntiXSS. Adding 'Microsoft.WindowsAzure.ConfigurationManager 1.8.0.0' to testingAntiXSS. Successfully added 'Microsoft.WindowsAzure.ConfigurationManager 1.8.0.0' to testingAntiXSS. Adding 'WindowsAzure.Storage 2.1.0.3' to testingAntiXSS. Successfully added 'WindowsAzure.Storage 2.1.0.3' to testingAntiXSS. Adding 'AjaxControlToolkit 7.1213' to testingAntiXSS. Successfully added 'AjaxControlToolkit 7.1213' to testingAntiXSS. PM> Install-Package HtmlAgilityPack 'HtmlAgilityPack 1.4.6' already installed. testingAntiXSS already has a reference to 'HtmlAgilityPack 1.4.6'. PM>