Closed rgoodman1977 closed 7 months ago
What version of .NET does your project target? If there's an app.config or web.config, make sure that the assembly reference is correct. If this project references other projects which also reference AngleSharp for whatever reason, make sure that they target the same version.
Beyond that... I'm using HtmlSanitizer in a .NET6 project with no issues, so it's something about your setup.
I'm going to close this for now.
This fixed it for me, adding this to my web config of the project.
<dependentAssembly>
<assemblyIdentity name="AngleSharp" publicKeyToken="e83494dcdc6d31ea" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-0.17.1.0" newVersion="0.17.1.0"/>
</dependentAssembly>
I am getting this error when trying to load the sanitizer:
I can't see anything referencing AngleSharp, Version=0.17.0.0'
This is what my nuget screen look like right now:
Any advice? Thanks