G
Guest
Hello:
I have an ASP application that takes a file and parses it.
I have a fileUpload control on my ASP page. Here's the code that gets file
details:
Dim srFile As StreamReader
Try
srFile = New StreamReader(getFile.PostedFile.FileName)
Catch ex As Exception
Err.Raise(_iErrorbase + 0, "ProcessFile", ex.Message)
Return False
End Try
When I am prompted and I choose a file anywhere but my desktop, the code
does not raise an exception. But if I choose a file that is on my Desktop, it
says "Access to ... is denied".
And, it does not happen on my development box but it happens on the
prooduction box.
Can somebody shed light on this issue?
I have an ASP application that takes a file and parses it.
I have a fileUpload control on my ASP page. Here's the code that gets file
details:
Dim srFile As StreamReader
Try
srFile = New StreamReader(getFile.PostedFile.FileName)
Catch ex As Exception
Err.Raise(_iErrorbase + 0, "ProcessFile", ex.Message)
Return False
End Try
When I am prompted and I choose a file anywhere but my desktop, the code
does not raise an exception. But if I choose a file that is on my Desktop, it
says "Access to ... is denied".
And, it does not happen on my development box but it happens on the
prooduction box.
Can somebody shed light on this issue?