I receive the following error in a Web Service call from an ASP.Net to a
VB.Net service:
[WebException: The request failed with HTTP status 401: Unauthorized.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
I attempted the two resolutions suggested by Josh Twist without resolution.
I am running everything (ASP.net, IIS, SQL 2000, VB.Net service) locally on
a Windows XP Pro laptop. The service tests fine when debugging. The service
creates a new file on a specified directory, so on a hunch I gave all IDs
full control, but without resolution.
Any suggestions would be helpful.
Martin Kulov [MVP] - 07 Apr 2006 01:03 GMT
>I receive the following error in a Web Service call from an ASP.Net to a
> VB.Net service:
[quoted text clipped - 3 lines]
> System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
> message, WebResponse response, Stream responseStream, Boolean asyncCall)
Hi BigJohn,
you probably are using Integrated Authentication for your web service
virtual directory. When you debug the web service you are accessing it with
the account that you are currently logged in. But when you access the web
service from ASP.NET site, you are actually trying to access the service
using the restricted ASPNET account. Enable the Anonymous Access for your
web service to allow everyone to access your service. Then give enough
permissions to ASPNET (the account that the service will run under with
anonymous access enabled) to create a file in a given directory. Search the
newsgroups for any other problems. This issue has been discussed for ages.
Good luck,

Signature
Martin Kulov
http://www.codeattest.com/blogs/martin
MVP, MCT, MCSD.NET Early Achiever
Scott M. - 28 Dec 2006 17:09 GMT
My suggestion would be to forget about returning an ArrayList completely and
just return a string of XML, where each XML node represents one of your
current ArrayList items.
> Subject: ArrayOfAnyType
> Date: Wed, 27 Dec 2006 07:24:11 -0600
[quoted text clipped - 111 lines]
> little) or how to use the new class to return the xml page. Any help
> much appreciated.