views:

90

answers:

3

I have two .net web services deployed to the same IIS server using SSL, one that references the other.

If I set that web reference to 'localhost', some calls fail with this exception:

System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it

If I set it to the actual machine name, it works.

Why?

A: 

I suspect you'll find that IIS is configured to listen for requests on the "real" network interface but not on the loopback adapter.

You should be able to see this with a plain browser - try going to https://localhost on the box and see what happens.

Jon Skeet
Strangely I can navigate with a browser, it's only the inter-service calls that may fail.
Sam
@Sam: Hmm... that's very strange...
Jon Skeet
May be related to specific permissions (e.g. for a particular account) not having been set for localhost.
reinierpost
A: 

The 127.0.0.1 possibly can resolve the problem. Why? I dont know- get from the experiments.

Stremlenye
A: 

Hi I have the same problem, how did you resolve it. Please help me if you can because i am stuck

Faten
I'm sorry I can't remember :-/
Sam