我的webService无法在我的localHost上打开xml文件(“访问被拒绝”) [英] my webService cannot open xml file (" access Denied ") on my localHost
本文介绍了我的webService无法在我的localHost上打开xml文件(“访问被拒绝”)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的webService的一部分:
XDocument xml1 = new XDocument(
new XElement(mySongs,
) new XElement(song,
new XElement(Location,location),
new XElement(Date,date),
new XElement(Name,name),
新XElement(picUrl,picUrl),
新XElement(SongUrl,songUrl)
)
)
);
xml1.Save(songs.xml);
i获取访问权限:
拒绝访问路径'C:\Program Files(x86)\ Common Files \ Myscoft Shared\DevServer\10.0\songs.xml'。
我不知道他在哪里保存我的xml
i打开或保存xml
解决方案
part of my webService:
XDocument xml1 = new XDocument( new XElement("mySongs", new XElement("song", new XElement("Location", location), new XElement("Date", date), new XElement("Name",name), new XElement("picUrl", picUrl), new XElement("SongUrl", songUrl) ) ) ); xml1.Save("songs.xml");
i get access exsption :
Access to the path 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\songs.xml' is denied.
I do not know where he keeps my xml
i cant open or save xml
解决方案
这篇关于我的webService无法在我的localHost上打开xml文件(“访问被拒绝”)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文