I am getting a dreaded Access To Path <fileis denied in a C# program. I
tried granting full access to ASPNET (local machine), the user running the
program (a domain administrator) and continue to get the error everytime I
attempt to access the file, create a new file or delete the file. I even
attempted to set fileIOPermission to what I believe to be all access for the
file and the directory with the same result.
Any advise would be greatly appreciated!
Tim
peertATenvysysDOTcomNothingElseFollowsThisEmailAdd ress.
System.IO.FileInfo finfo = new System.IO.FileInfo(ffile);
FileIOPermission fper = new
FileIOPermission(FileIOPermissionAccess.AllAccess, finfo.Directory.FullName);
//finfo.Attributes = FileAttributes.Normal;
if (!finfo.Exists) finfo.Create();
}
catch (Exception ec)
{
DevExpress.XtraEditors.XtraMessageBox.Show(this, ec.Message);
}