Skip to content

Exception on Windows Universal #48

Closed

Description

@ebatiano

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)

Activity

  1. Licshee commented on May 2, 2017

    @Licshee
    Collaborator

    I'll check what I can do

  2. eXpl0it3r commented on Nov 23, 2026

    @eXpl0it3r
    Collaborator

    Fixed with #244, which replaced WebClient with an HttpClient based network loader as part of making resource loading async. Closing this, but feel free to reopen with a repro if it still happens with 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions