****访问路径被拒绝 [英] Access to path **** is denied
问题描述
我知道有这个已经一吨的东西,并尝试了一些东西,但在确定它有没有运气。
I know there is a ton of stuff on this already and have tried a few things but have had no luck in fixing it.
我有一个已经建立了一个XML文档和IM试图将它保存到我的文档文件夹多数民众赞成在C#程序。调用 XMLDoc.Save
功能时,我收到folliwing例外。
I have a C# program that has built an XML Document and im trying to save it to a folder thats in MyDocuments. I am getting the folliwing exception when calling the XMLDoc.Save
function.
访问到路径C:\Users\Ash\Documents\ConfigOutput'被拒绝
Access to the path 'C:\Users\Ash\Documents\ConfigOutput' is denied
我的Visual Studio作为运行管理员。就如何解决它的任何想法。
I have visual studio running as administrator. Any thoughts on how to fix it?
我试图挽救到桌面,进入C:\?藏汉夹。
I have tried saving onto the desktop and into the C:\ folder aswell.
我使用Windows 7。
I am using windows 7.
运行内置的可执行文件也似乎没有工作。
Running the built executable also doesnt seem to work.
道歉的家伙,看来我太傻了。我确实没有添加一个文件名的输出路径。我不会删除的问题柜面任何人得到这个疑难杂症完成了!感谢所有帮助/意见
Apologies guys it seems I was being stupid. I had indeed not added a filename to the output path. I'll not delete the question incase anyone else gets done by this gotcha! Thanks for all the help/comments.
推荐答案
有几种可能性:
- ConfigOutput是一个文件夹
- ConfigOutput是一个文件正在使用(打开)
- 您'再没有登录为用户'灰'
您应该通常没有作为管理员身份运行写信给自己的文件夹。
You should not normally have to run as Admin to write to your own Documents folder.
这篇关于****访问路径被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!