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

Posted by j-t-s on Stack Overflow See other posts from Stack Overflow or by j-t-s
Published on 2010-05-22T11:42:18Z Indexed on 2010/05/22 11:50 UTC
Read the original article Hit count: 325

Filed under:
|
|
|

Hi ALl

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);
                }

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET