I have a lot of programming experience, but not very much in the ASP field. I am using IIS 5.1. I am using Visual Basic 6 to create an IIS application. The problem is that im getting an error when the asp tries to write a file. I am trying to write to "... The error occurs in the function:
Public Function GetCountFromText(TextPath As String) As String
Open TextPath For Binary Access Read As #1
GetCountFromText = String(LOF(1), Chr(0))
Get #1, 1, GetCountFromText
Close #1
GetCountFromText = Trim(GetCountFromText)
Open TextPath For Binary Access Write As #1
Put #1, 1, GetCountFromText + 1
Close #1
End Function
If i take this part out it works:
Open TextPath For Binary Access Write As #1
Put #1, 1, GetCountFromText + 1
Close #1
but i have to have that in there because it adds to the counter. This worked before, but then I had to reinstall windows and i am getting this error. It puzzles me. I have a lot of other things that are dependent on writing to files, so I have errors on a lot of my pages. Is there some sort of setting in IIS that keeps the ASPs from being able to write. If you need anymore information then just say. I really appreciate your time and thanks.
Public Function GetCountFromText(TextPath As String) As String
Open TextPath For Binary Access Read As #1
GetCountFromText = String(LOF(1), Chr(0))
Get #1, 1, GetCountFromText
Close #1
GetCountFromText = Trim(GetCountFromText)
Open TextPath For Binary Access Write As #1
Put #1, 1, GetCountFromText + 1
Close #1
End Function
If i take this part out it works:
Open TextPath For Binary Access Write As #1
Put #1, 1, GetCountFromText + 1
Close #1
but i have to have that in there because it adds to the counter. This worked before, but then I had to reinstall windows and i am getting this error. It puzzles me. I have a lot of other things that are dependent on writing to files, so I have errors on a lot of my pages. Is there some sort of setting in IIS that keeps the ASPs from being able to write. If you need anymore information then just say. I really appreciate your time and thanks.