.Net 4.0中的文件访问被拒绝问题 [英] File Access denied problem in .Net 4.0
本文介绍了.Net 4.0中的文件访问被拒绝问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
i有一个在Visual Studio 2010和.net 4.0中开发的桌面应用程序。
应用程序必须在一个文件中读写,该文件放在C盘中。应用程序运行正常,因为我使用管理员帐户。但是当我在非管理员帐户中登录时,当我尝试写入文件时,我收到错误拒绝访问。
我正在尝试的另一件事这在Windows 7,32位版本中。
任何建议或帮助都将不胜感激。
bye
解决方案
允许所有用户完全控制此文件..
右键单击档案--->属性--->转到安全标签--->在这里给予用户完全许可
谢谢
AARIF SHAIKH
Hi
i have a desktop application developed in Visual Studio 2010 and .net 4.0.
The application have to read and write in a file, which is placed in C drive. Application runs fine as i work in Administrator account. But when i log on in a Non Administrator account, I get a error "Access denied" when i try to write to the file.
One more thing I am trying this in Windows 7, 32-bit version.
Any kind of suggestion or help will be appreciated.
bye
解决方案
Allow All Users Full Control for this file..
Right Click on that File ---> Properties ---> Go Security Tab ---> Give here Full permission to user
Thanks
AARIF SHAIKH
这篇关于.Net 4.0中的文件访问被拒绝问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文