An error Access to the path 'xxx' is denied

  • Thread starter Thread starter M
  • Start date Start date

M

New Member
Hi i am create a file txt that show error and give link so file can be open.it woks on firefox but doesnt work on ie here the screen shootfirefox
Ecfv7.png
Ie
JTmji.png
\[code\]If (Not System.IO.Directory.Exists("~\Errortext")) Then System.IO.Directory.CreateDirectory("~\ErrorText") End If Dim lodt As New DataTable da.Fill(lodt) If lodt.Rows.Count > 0 Then Dim filex As StreamWriter = File.CreateText("~\ErrorText\Error" & Session("UID") & ".txt") Dim i As Integer For i = 0 To lodt.Rows.Count - 1 filex.WriteLine(Left(lodt.Rows(i).Item("colErr"), Len(lodt.Rows(i).Item("colErr")) - 1)) Next filex.Close() lblMessage.Text = "Click on <a href=""../~/ErrorText/Error" & Session("UID") & ".txt"">THIS ONE</a> to proceed" Else lblMessage.Text = "berhasil" End If\[/code\]
 
Back
Top