Invalid URI: The format of the URI could not be determined

I keep getting this error.

Invalid URI: The format of the URI could not be determined.

the code I have is:

Uri uri = new Uri(slct.Text);
if (DeleteFileOnServer(uri))
{
    nn.BalloonTipText = slct.Text + " has been deleted.";
    nn.ShowBalloonTip(30);
}

Update: the content in slct.Text is ftp.jt-software.net/style.css.

What gives? How is that not a valid URI format? It’s plain text.

Leave a Comment