Skip to content

Error with Proxy  #2

@ACZERWIN61

Description

@ACZERWIN61

net Core 8 MVC application When Is added proxy there is error - probably should not possible to use Proxy and DefaultProxy true

I make the some console test
var transport = new HttpsTransportBindingElement();

if (!string.IsNullOrEmpty(ProxyAddress))
{
transport.ProxyAddress = new Uri(ProxyAddress);
transport.UseDefaultWebProxy = false;
Console.WriteLine($"Proxy ustawiony na: {ProxyAddress}");
}
else
{
Console.WriteLine("Proxy nie jest ustawiony.");
}

var customBinding = new CustomBinding(encoding, transport);
_gusServices.Endpoint.Binding = customBinding;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions