如何在AppData \Roaming中更改Xml文件的许可 [英] How to change the permissin of the Xml file in AppData\Roaming

查看:158
本文介绍了如何在AppData \Roaming中更改Xml文件的许可的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





安装完应用程序后,它会在路径AppData\Roaming\Myapplication中编写一个名为names.xml的xml。我想用我的应用程序编辑这个文件。当我尝试向它写一些东西时,它会抛出一个名为unauthorizedAccessException的异常。如何更改文件的权限。



请帮助我。



感谢你的时间。

解决方案



普通用户无法访问c:/驱动器中的文件。因此,该软件应由管理员特权用户安装和使用。我已经更改了Application manifesto文件中的代码。现在我的申请工作正常。



感谢您的时间和工作。



谢谢和问候

Hi,

After installation of my application ,it write a xml called names.xml in the path AppData\Roaming\Myapplication. I want to edit this file using my application. When I trying to write something to it, it throw a exception called unauthorizedAccessException. How to change the permission of the file.

Please help me.

Thanks for ur time.

解决方案

Hi,
A normal user can't access the files in the c:/ drive. So the software should be installed and used by a administrator privileged user. I have change the code in the Application manifesto file for this. Now My application working fine.

Thanks for time and work.

Thanks and regards


这篇关于如何在AppData \Roaming中更改Xml文件的许可的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆