This code to throws Twilio.Exceptions.ApiException Url is not a valid URL:
var call = CallResource.Create(
url: new Uri("https://localhost:44300/TwimlResponse.ashx?code=87359179"),
to: new Twilio.Types.PhoneNumber("+16509661950"),
from: new Twilio.Types.PhoneNumber(phonenumber)
);
This is a perfectly valid url. I do not understand why this exception is being thrown? Can't the webhook url make a call to ashx page on a specific port number?