Hi there,

We just migrated our Windows2000/IIS5 web servers to brand new
Windows2003/IIS6 servers; all web applications work like a charm except
the ones that call web services.

The web services are published on the same server and the security is
exactly the same as the old server, with the exception of the ASPNET
account replaced for the NETWORK SERVICE account...

The problem is, the applications that call the web service throw Error
401 (Unauthorized) if the URL used to access the webservice uses the
friendly name of the server... If we change that URL for the actual
machine name, the web service works as expected...

So, http://friendlyname/webservices/myservice.asmx doesn't work...
and http://machinename/webservices/myservice.asmx works!

Why is this? Any clues? Thanks in advance!

- Allan R.

Re: Web Service throws 401 error when friendly server name is used. by Steve

Steve
Sat Jul 01 23:02:18 CDT 2006

This sounds like the request for the ASMX service is going to a different
top-level website than you expect. Have you verified the web service is
deployed to the correct website? I would also check the event log for
errors.

Steve



<allan.rojas@gmail.com> wrote in message
news:1151352713.485428.256690@y41g2000cwy.googlegroups.com...
> Hi there,
>
> We just migrated our Windows2000/IIS5 web servers to brand new
> Windows2003/IIS6 servers; all web applications work like a charm except
> the ones that call web services.
>
> The web services are published on the same server and the security is
> exactly the same as the old server, with the exception of the ASPNET
> account replaced for the NETWORK SERVICE account...
>
> The problem is, the applications that call the web service throw Error
> 401 (Unauthorized) if the URL used to access the webservice uses the
> friendly name of the server... If we change that URL for the actual
> machine name, the web service works as expected...
>
> So, http://friendlyname/webservices/myservice.asmx doesn't work...
> and http://machinename/webservices/myservice.asmx works!
>
> Why is this? Any clues? Thanks in advance!
>
> - Allan R.
>