URI格式不是在C#支持 [英] URI formats are not supported in c#
本文介绍了URI格式不是在C#支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图插入到XML文件中我的数据。 xml文件的位置
路径: HTTP://AutoCompleteInGridView%20new1/Design/Pro/pricelist.xml
。
我插入数据时,我得到错误 URI格式不被支持
。
它显示参数异常是unhandled.I想保存我的XML
在服务器系统
。这些网址属于SERVERPATH位置的文件。
谁能给我一个建议或链接来解决这些问题。
I am trying to insert my data in to xml file. the xml file location
path: http://AutoCompleteInGridView%20new1/Design/Pro/pricelist.xml
.
when inserting my data i got error URI formats are not supported
.
It shows argument exception was unhandled.I want to save my xml
file in server system
.these url belongs to ServerPath location.
can anyone give me a suggestion or links to solve these problem.
这里是错误:
推荐答案
使用这个示例:
string uriPath = "YourAddress/pricelist.xml";
string localPath = new Uri(uriPath).LocalPath;
这篇关于URI格式不是在C#支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文