Hi all,
I am trying to open a text file and reading it line by line.But I am geting this exception please suggest me.
exception details:
System.UnauthorizedAccessException was caught
Message=Access to the path 'C:\Users\karthick.k\Desktop\OB8182301_20130823_020658.txt' is denied.
Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.IO.File.OpenRead(String path)
at StorageBase.SbWebPages.KortaPaymentImport.paymentKorta() in F:\GeymslurAlpha\StorageBase\SbWebPages\KortaPaymentImport.aspx.cs:line 214
InnerException:
Thank you all.