HELP PLEASE The request failed with HTTP status 401: Access Denied.

From: John (jonashbaugh@hotmail.com)
Date: 11/26/02


From: "John" <jonashbaugh@hotmail.com>
Date: Tue, 26 Nov 2002 06:33:51 -0800


We have basic authentication on through IIS. We are running a win xp pro
server. When trying to access the site via a browser I get the login and
password page. I put in the valid login and password and I am able to access
the site. However through our code we cannot access the site automatically.
I am missing something? Thanks in advance. This site is accessible via the
internet.

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles btnLogin.Click

Dim Service As New localhost.ABCService()

Dim credentials As System.Net.NetworkCredential = New
System.Net.NetworkCredential("USeR", "xxxxxx")

Service.Credentials = credentials

Dim Info As String = Service.Login(LCase(txtUser.Text),
LCase(txtPassword.Text), LCase(txtCompany.Text))

Dim str As String

If Info = "Error" Then

    Response.Redirect("login_err.aspx")

End IF

End Sub



Relevant Pages

  • Search pattern
    ... Dim strfile As String ... Dim bAddressFound As Boolean ... Dim strCurrentChar As String ...
    (comp.databases.ms-access)
  • Auto Write Name and Merge across
    ... Dim Sheetname01 As String ... Dim WeekName01 As String ...
    (microsoft.public.excel.misc)
  • Re: multiplatform (pocketPC & desktopPC) (Daniel !!)
    ... Friend Versione As String ... Public Sub GetMyConnectionPalmare() ... Dim errorMessages As String ... Private Function GetDS_Desktop(ByVal SQL As String) As DataSet ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: multiplatform (pocketPC & desktopPC) (Daniel !!)
    ... Friend Versione As String ... Public Sub GetMyConnectionPalmare() ... Dim errorMessages As String ... Private Function GetDS_Desktop(ByVal SQL As String) As DataSet ...
    (microsoft.public.dotnet.framework.compactframework)
  • Help answer these 70-310 questions
    ... One argument is the string ... Dim output As New StringBuilder ... EmployeeLocations. ... You create a strongly named serviced component. ...
    (microsoft.public.cert.exam.mcsd)