Hello, I wrote code to set permission of the folder. Function I developed was
public void SetPermission(string user,FileSystemRights rights)
{
DirectoryInfo dInfo = new DirectoryInfo(folderPath);
DirectorySecurity oDirectorySecurity = new DirectorySecurity();
oDirectorySecurity.AddAccessRule(new FileSystemAccessRule(user, rights, AccessControlType.Allow));
dInfo.SetAccessControl(oDirectorySecurity);
}
This function is working fine to set permission for the user. But when I check folder Properties -> Security , user added. But no permission is checked in checkbox Open Advanced dialogbox. In this box I can see permission , which i set for the user.
So my question is Why there is no checkbox seleced on security tab, but it is there in advanced tab?
Please HELP me!!!!!!