Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Proxy start fails on UWP #522

@nirdil

Description

@nirdil

Under UWP, running ProxyServer.Start throws a System.IO.FileLoadException for Microsoft.Win32.Registry. Was mapped to the following code:

// clear any system proxy settings which is pointing to our own endpoint (causing a cycle)
// due to ungracious proxy shutdown before or something else
if (systemProxySettingsManager != null && RunTime.IsWindows)
{
    var proxyInfo = systemProxySettingsManager.GetProxyInfoFromRegistry();

As a system proxy is irrelevant for UWP anyways, I suggest to just wrap this cleanup with a try catch, that worked for me and allowed it to run on UWP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions