TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
amuthapriya sundaram
NA
2
10.4k
How to Deploy Security to a file
Aug 23 2010 7:41 AM
hi,
I would like to give the permission to a file.here is my code is as follows.
string filename="F:\\memory_reduce.txt";
FileSecurity
fs =
File
.GetAccessControl(filename);
fs.AddAccessRule(
new
FileSystemAccessRule
(
@"DomainNme\\AccountName"
,
FileSystemRights
.FullControl,
AccessControlType
.Allow));
File
.SetAccessControl(filename,fs);
but it's not working.
"some or all identity references could not be translated ". exception comes.
can someone help me? pls........................
Reply
Answers (
0
)
How to get specific data from XML?
image processing