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

From: Larry Hastings (greg.NOSPAM.@NOSPAM.unixsucks.com)
Date: 11/26/02


From: "Larry Hastings" <greg.NOSPAM.@NOSPAM.unixsucks.com>
Date: Tue, 26 Nov 2002 09:23:52 -0600


Try changing to Integrated Windows Authentication on IIS instead of basic or
vice a versa.

--
G
http://www.unixsucks.com
"John" <jonashbaugh@hotmail.com> wrote in message
news:#2ltUjVlCHA.2036@tkmsftngp07...
> 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

  • Re: HELP PLEASE The request failed with HTTP status 401: Access Denied.
    ... Heck I even took the ip of the webserver and made my laptop the ... I have noticed that under my laptop config of IIS ... > Try changing to Integrated Windows Authentication on IIS instead of basic ... >> We have basic authentication on through IIS. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ADSI Problem
    ... I suggest posting to IIS groups as well because if IIS will cause it to ... causing the script to stop working after it has been working. ... I have written a script to authenticate Active Directory users via ADSI ... Dim strUserName ...
    (microsoft.public.windows.server.active_directory)
  • Re: streaming binary data from sql 2005
    ... seems there hasn't detailed public reference. ... I'll contact some other IIS ... developing raw ISAPI extension or filters, ... |> | Dim cmdUploadBinary As New SqlCommand ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ADSI Problem
    ... If you are doing forms authentication using ADSI (which it sounds like you ... Do you know how I can also the script to make it work all the time. ... Restarting IIS usually gets it working again. ... Dim strUserName ...
    (microsoft.public.windows.server.active_directory)
  • Re: Calling J2EE web service from .NET
    ... When I run my Java test, according to netmon, the HTTP header of the request ... contains a "Basic Authentication" section with the realm containing a UserId ... Dim oper As New WSRef.myOper ... I created a Java ...
    (microsoft.public.dotnet.framework.webservices)