ArthurHub / ArthurHub/HTML-Renderer
Exception on Windows Universal
- Dominant language
- C#
- Stars
- 1.4k
- Forks
- 550
- Avg merge
- 14d 9h
- Merged PRs (30d)
- 1
Description
On windows universal there is no WebClient avaliable. It throws an exception inside SetHtml All referencesz should be converted to WebRequest.
```
Exception thrown: 'System.TypeLoadException' in HtmlRenderer.dll
AppError:System.TypeLoadException: Could not load type 'System.Net.WebClient' from assembly 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes'.
at TheArtOfDev.HtmlRenderer.Core.Handlers.ImageDownloader..ctor()
at TheArtOfDev.HtmlRenderer.Core.HtmlContainerInt.SetHtml(String htmlSource, CssData baseCssData)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the ImageDownloader constructor and HtmlContainerInt.SetHtml entry point, then inspect where WebClient is referenced in the Windows Universal path. Reproduce SetHtml on Windows Universal and verify that it no longer throws the reported TypeLoadException and that the relevant references use WebRequest.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100