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 fileIOPermissio n 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
peertATenvysysD OTcomNothingEls eFollowsThisEma ilAddress.
System.IO.FileI nfo finfo = new System.IO.FileI nfo(ffile);
FileIOPermissio n fper = new
FileIOPermissio n(FileIOPermiss ionAccess.AllAc cess,finfo.Dire ctory.FullName) ;
//finfo.Attribute s = FileAttributes. Normal;
if (!finfo.Exists) finfo.Create();
}
catch (Exception ec)
{
DevExpress.Xtra Editors.XtraMes sageBox.Show(th is, ec.Message);
}
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 fileIOPermissio n 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
peertATenvysysD OTcomNothingEls eFollowsThisEma ilAddress.
System.IO.FileI nfo finfo = new System.IO.FileI nfo(ffile);
FileIOPermissio n fper = new
FileIOPermissio n(FileIOPermiss ionAccess.AllAc cess,finfo.Dire ctory.FullName) ;
//finfo.Attribute s = FileAttributes. Normal;
if (!finfo.Exists) finfo.Create();
}
catch (Exception ec)
{
DevExpress.Xtra Editors.XtraMes sageBox.Show(th is, ec.Message);
}
Comment