Re: The request failed with HTTP status 401: Unauthorized



Please show the code you are using to create the web service instance.



"BigJohn" <bigjohn@xxxxxxxxxxxxxxxx> wrote in message
news:A7655A02-E456-488A-8185-B54677172432@xxxxxxxxxxxxxxxx
I tried this method and Josh's (set web service with anonymous auth) and
cannot bet either to funtion. I am running on Windows XP Pro, all modules
are within same solution.


"Scott M." wrote:

The web service you are attempting to access requires that the caller
provide its credentials to prove that it should be allowed to access the
web
service. You can use this code to send the "default credentials" to the
web
service:

Dim myProxy As New localhost.Service1()
myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials

"manika02" <manika02@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B7D2BF65-9F76-459B-A6D7-361ADA79EF2B@xxxxxxxxxxxxxxxx
Hi,
I get the following eror when I try to call my WebService (on the local
machine) using another Web application (on the local machine)

System.Net.WebException: The request failed with HTTP status 401:
Unauthorized

Any insights on this would be helpful.

Thanks









.



Relevant Pages

  • How to force login to with Windows 2000 / XP
    ... Is there a registry key to force the users (Windows 2000 Pro and XP) that ... machine Windows defaults the login to drop down box to the local machine. ...
    (microsoft.public.win2000.networking)
  • How do I force domain login on systems?
    ... Is there a registry key to force the users (Windows 2000 Pro and XP) that ... machine Windows defaults the login to drop down box to the local machine. ...
    (microsoft.public.windows.server.networking)
  • How to change the ip address with administrator credentials...
    ... as an administrator on the local machine. ... I've tried to run netsh, with administrator credentials using runas, but is ... Windows XP Pro if the user is not member of the local admin group? ...
    (microsoft.public.windowsxp.network_web)
  • Re: How to Manage my network passwords in Win XP Home?
    ... Windows 2000 though you can map drives with persistent alternate ... credentials. ... > In Windows XP Pro, we can access "Manage my network passworks", through ... does Windows 2000 Pro has this feature? ...
    (microsoft.public.security)
  • Re: Domain users
    ... controller and then themselves as their preferred dns server. ... > same name as I called it in the Domain Windows 2000 ADV Server. ... But the user is an Admin on the Local machine Windows XP. ... >> As a regular user they will not be able to install much of anything. ...
    (microsoft.public.win2000.group_policy)