Apologies if this isnt quite the right thread, but it was the most suitable one I could find.
Ive a webservice in VB.Net and the requirement is for the clients to log in using basic windows authentication.
Ive changed the Web Config of the webservice to read
Ive added the following to my client where the webservice is called;
and I get a 401 error.
IIS is set up to use basic windows authentication.
So what step(s) have I missed out or got wrong here?
(name and password are those I use to log on to the machine)
Cheers
K
Ive a webservice in VB.Net and the requirement is for the clients to log in using basic windows authentication.
Ive changed the Web Config of the webservice to read
Code:
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
Ive added the following to my client where the webservice is called;
Code:
Dim service As New AddNewOrder.AddNewOrderService
Dim _credentialCache As CredentialCache = New CredentialCache
Dim credentials As NetworkCredential = New _
NetworkCredential(<<name>>, <<password>>)
_credentialCache.Add(New Uri(service.Url), "Basic", _
credentials)
service.Credentials = _credentialCache
and I get a 401 error.
IIS is set up to use basic windows authentication.
So what step(s) have I missed out or got wrong here?
(name and password are those I use to log on to the machine)
Cheers
K