Ho un problema nella lettura di file dal client...
Il procedimento è simile all'upload, soltanto che volgio aprire il file per leggerlo...
Sul mio webserver (ISS5) funziona bene...
Il problema è quando lo metto on-line su dominio
l'errore che mi da è:
Could not find a part of the path "C:\Documents and Settings\Mentz\Desktop\ToRead.txt".
(il path è giusto...)
Questo è parte del codice....
codice:
Dim sPath = txtPath.PostedFile.FileName 'dalla casella upload
Dim sr As StreamReader
Dim sRiga As String
....
....
' Open the file to read.
Try
sr = File.OpenText(sPath)
sConn.Open() 'connessione dichiarata precedentemente anche se non scritta
While sr.Peek <> -1
sRiga = sr.ReadLine()
'visualizzo i dati
.....................
......................
End While
Catch e As Exception
CtrlTxt.Text = e.Message
End Try