Re: HELP PLEASE The request failed with HTTP status 401: Access Denied.
From: John (jonashbaugh@hotmail.com)
Date: 11/26/02
- Next message: Val Mazur: "Re: Could not lock file Error"
- Previous message: nu-k-ar: "Re: HELP PLEASE The request failed with HTTP status 401: Access Denied."
- In reply to: nu-k-ar: "Re: HELP PLEASE The request failed with HTTP status 401: Access Denied."
- Next in thread: John: "Re: HELP PLEASE The request failed with HTTP status 401: Access Denied."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "John" <jonashbaugh@hotmail.com> Date: Tue, 26 Nov 2002 08:37:47 -0800
nu-k-ar,
I think this seems to be the problem can you point my to where to
start on this issue? Thanks. Ok I have a weird problem. I am trying to setup
basic authentication
for our webservices. The web services are to be accessed by both a website,
residing on same server, and come applications(which are connecting via the
internet). We are using a XP Pro server. When I setup basic authentication
in IIS I can goto a browser and it asks for login and password. That works.
When I try to do it within the application or the website using the New
System.Net.NetworkCredential("USer", "1") it bombs, giving the requestion
failed with HTTP status 401. Access Denied. The weird part is that my laptop
that has been used as my development, which it's identical(or at least I
thought) to our server, the authentication code works fine. So I made my
laptop take over as the web server and changed the IP and everything is
working, so clients can connect and the basic authentication works fine. It
seems that there is some configuration issue that I am missing on the real
server. I noticed that the real server doesn't have the following mappings:
.htw, .ida, .idc, .idq in IIS, but none of these seem to link to the .NET
framework( I added these to the real server and still having an issue). So
basically it's not a coding issue as the code works on my laptop, I just
cannot figure out if it's an IIS configuration issue, since I can login via
a browser normally, or if it's a .NET configuration issue and where to
begin. Thanks in advance for any help.
"nu-k-ar" <nospam@plz.com> wrote in message
news:ejxB5fWlCHA.2240@tkmsftngp04...
> 1.) turn on all your security policy logging
>
> 2.) check if u have an real login (means kerberos token)
> 3.) if u go to an remote sql-server (integrated sec), mark u're
web-service
> server "for delegation" in the AD
> http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q283201
>
> 4.) disable integrated sec on the web-server cause integrated is stronger
> than basic
>
> 5.) if u go with integrated then u deliver a kerberos token
>
> isent it NetWorkCredential.getGredential(URI)
> cred.user
> cred.pass
> cred.realm
>
> check your security logs...
>
> blaaa....
>
> .::[nu-k-ar]::
>
>
> "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
> >
> >
>
>
- Next message: Val Mazur: "Re: Could not lock file Error"
- Previous message: nu-k-ar: "Re: HELP PLEASE The request failed with HTTP status 401: Access Denied."
- In reply to: nu-k-ar: "Re: HELP PLEASE The request failed with HTTP status 401: Access Denied."
- Next in thread: John: "Re: HELP PLEASE The request failed with HTTP status 401: Access Denied."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|