无效的URI:URI的格式无法确定 [英] Invalid URI: The format of the URI could not be determined
本文介绍了无效的URI:URI的格式无法确定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不断收到此错误。
Invalid URI: The format of the URI could not be determined.
在code我拥有的是:
the code I have is:
Uri uri = new Uri(slct.Text);
if (DeleteFileOnServer(uri))
{
nn.BalloonTipText = slct.Text + " has been deleted.";
nn.ShowBalloonTip(30);
}
编辑:在slct.Text含量为 ftp.jt-software.net/style.css
怎么办?这是怎么回事不是一个有效的URI格式?这是纯文本。
What gives? How is that not a valid URI format? It's plain text.
推荐答案
检查可能的原因在这里:<一href="http://msdn.microsoft.com/en-us/library/z6c2z492(v=VS.100).aspx">http://msdn.microsoft.com/en-us/library/z6c2z492(v=VS.100).aspx
Check possible reasons here: http://msdn.microsoft.com/en-us/library/z6c2z492(v=VS.100).aspx
编辑:
您需要把协议preFIX前面的地址,即你的情况的ftp://
You need to put the protocol prefix in front the address, i.e. in your case "ftp://"
这篇关于无效的URI:URI的格式无法确定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文