The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
[Originally posted by dananthak]

Hi:
The first piece of code that I tried was the from the remoting chapter.
I'm getting the following stack trace.
------------------
Unhandled Exception: System.Net.WebException:
The underlying connection was closed: Unable to connect to the remote server.

Server stack trace:
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessAndS
nd(IMessage msg, ITransportHeaders headers, Stream inputStream)
at System.Runtime.Remoting.Channels.Http.HttpClientTransportSink.ProcessMess
ge(IMessage msg, ITransportHeaders requestHeaders, Stream requestStream, ITrans
ortHeaders& responseHeaders, Stream& responseStream)
at System.Runtime.Remoting.Channels.SoapClientFormatterSink.SyncProcessMessa
e(IMessage msg)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage re
Msg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgD
ta, Int32 type)
at Echo.EchoObj.Echo(String message)
at EchoClient.Main()
------------------
Am I missing something here by way of config? I'm on a corporate intranet,
and access through a proxy, if that has any bearing.

Any help appreciated.

Thanks
Ananth
import-bot (20211) [Avatar] Offline
#2
Re: Remoting client exception
[Originally posted by fgrimes]

Hi Anantha,

Which example are you executing?
Are client and service on same (local) machine?

Fergal
import-bot (20211) [Avatar] Offline
#3
Re: Remoting client exception
[Originally posted by dananthak]

> Hi Anantha,
>
> Which example are you executing?
> Are client and service on same (local) machine?
>
> Fergal

Fergal:
Thanks. I'm on the same machine. The Service started in a different console.

Anantha