Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET -- Unknown User Name or Bad Password

Status
Not open for further replies.

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:
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top