Turpis
Programmer
- Apr 16, 2002
- 151
The error I get is this --
Logon failure: unknown user name or bad password.
What I am attempting to do is build a list of files from the server into a listbox on a webform. I can do this all day long if I point to my computer, however when I try it on a server path I get that error above.
I suppose this means I need to provide the password for the domain ASPUSER? I have been given that password by the System Engineer but I haven't a clue as to where to put it in my code to give me access to the server folders.
My code is as simple as simple can be:
Charles
Quality Assurance/Developer
Logon failure: unknown user name or bad password.
What I am attempting to do is build a list of files from the server into a listbox on a webform. I can do this all day long if I point to my computer, however when I try it on a server path I get that error above.
I suppose this means I need to provide the password for the domain ASPUSER? I have been given that password by the System Engineer but I haven't a clue as to where to put it in my code to give me access to the server folders.
My code is as simple as simple can be:
Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
FillExcelList()
Me.DataBind()
End Sub
Private Sub FillExcelList()
Dim myArray() As String
Dim strPath As String = "\\wmitulsa\shares\_Public\Temp\ExcelReporting\"
myArray = Directory.GetFiles(strPath)
Me.lstExcel.DataSource = myArray
End Sub
Charles
Quality Assurance/Developer