Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / December 2004

Tip: Looking for answers? Try searching our database.

The request failed with HTTP status 401: Access Denied.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rachel - 16 Dec 2004 16:19 GMT
I have created a simple web service in VC# that adds two numbers. It returns
an integer value to the client once invoked.
I used Visual Studio .NET 2003, Windows XP Pro and .NET 1.1.

I created a Windows form client. While debugging I get the following error :

Unhandled Exception: System.Net.WebException: The request failed with HTTP
status 401: Access Denied.

in the following line:

object[] results = this.Invoke("myadd", new object[] {
                       a,
                       b});

"myadd" is the name of the function which adds the numbers. It takes in 2
integer values.

The environment runs on localhost.
Anonymous access is allowed.
I tried disabling the 'integrated windows authentication' but once I did it
& updated the client web reference, I was asked for username, password &
domain. So i checked it again.

Thank you!

Signature

Rgds,
Rachel

Dan Rogers - 16 Dec 2004 19:42 GMT
Hi,

It sounds like there is a security setting on the application that you need
to work around.  Normally, a new service won't have this issue, since the
default local dev box just uses the IIS default permissions.

It sure doesn't seem like anon access is allowed...  Are you sure the
account that the app runs as has log in as service permission on the
machine?

Dan
--------------------
Thread-Topic: The request failed with HTTP status 401: Access Denied.
thread-index: AcTjiveFOIoLAyDMTkuCJ5bBZHRA/Q==
X-WBNR-Posting-Host: 213.42.2.23
From: =?Utf-8?B?UmFjaGVs?= <Rachel@discussions.microsoft.com>
Subject: The request failed with HTTP status 401: Access Denied.
Date: Thu, 16 Dec 2004 08:19:07 -0800
Lines: 29
Message-ID: <839DC3E2-84FC-4073-87B8-89F0BD887FEA@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
    charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8129
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

I have created a simple web service in VC# that adds two numbers. It
returns
an integer value to the client once invoked.
I used Visual Studio .NET 2003, Windows XP Pro and .NET 1.1.

I created a Windows form client. While debugging I get the following error :

Unhandled Exception: System.Net.WebException: The request failed with HTTP
status 401: Access Denied.

in the following line:

object[] results = this.Invoke("myadd", new object[] {
                       a,
                       b});

"myadd" is the name of the function which adds the numbers. It takes in 2
integer values.

The environment runs on localhost.
Anonymous access is allowed.
I tried disabling the 'integrated windows authentication' but once I did it
& updated the client web reference, I was asked for username, password &
domain. So i checked it again.

Thank you!

Signature

Rgds,
Rachel


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.