System.UnauthorizedAccessException

liu_zhen_1

New Member
I am getting this excption when I try to create or delete a text file inside a class I have built. <BR><BR><BR>System.UnauthorizedAccessException:<BR>Access to the path "D: extfilesdatafile2.txt" is denied.<BR> at System.IO.__Error.WinIOError(Int32 errorCode, String str)<BR> at System.IO.File.Delete(String path)<BR> at ASP.myTimer.OnTimedEvent(Object source, ElapsedEventArgs e)<BR><BR><BR><BR>R,W,X permissions are in fact set and if I try to delete or create the text file without the class it works fine. I can also perform other server side processes like send mail and stuff like that but it will not let me use my text files.<BR><BR>Thanks,<BR><BR><BR>Rob<BR>
 
Back
Top