Ok, I finally managed to narrow this one down a bit. Retrieving a reference to a well-known object hosted by IIS and calling methods on it works fine. But as soon as it returns an object stuff starts to go wrong. Using Ingo Rammer's hint at http://www.ingorammer.com/RemotingFAQ/GETMARSHALBYREFOBJECTSURL.html I got the URL for the object. The host name is resolved to an IP, but _it is the wrong IP_. The server I'm attempting to connect to has several IP's corresponding to seperate web sites, and the IP I'm getting back is the IP for a secure site (requires https) instead of the IP for the default site. Hence, a web exception is thrown.
So, why is the wrong IP being returned/resolved? Shouldn't the fact that the well-known remote object is on one web site be enough to tell remoting to use the same IP? Is there anyway I can force IIS/remoting to use one IP over another? Thanks, Andy
