Setting Keep Alvive to false using .net remoting

I'm using .net remoting, do http channel requests to a IIS web site.

On client config file have this http channel configuration:

<channels>

<channelref="http"useDefaultCredentials="true"port="0">

<clientProviders>

<formatterref="binary" />

<providertype="CompressionSink.CompressionClientSinkProvider, CompressionSink" />

</clientProviders>

</channel>

And call Activator.GetObject() class, to get a proxy object:

"securityService = (ILookupService)Activator.GetObject(typeof(ILookupService),

remoteServiceUrl +"/LookupService.rem"); "

On server side, I have this configuration on my web.config:

<system.runtime.remoting>

<application>

<service>

<wellknownmode="SingleCall"objectUri="LookupService.rem"type="Nsietv.BusinessFacade.LookupService, Nsietv.BusinessFacade"/>

</service>

<channels>

<channelref="http">

<serverProviders>

<providertype="CompressionSink.CompressionServerSinkProvider, CompressionSink"/>

<formatterref="binary"typeFilterLevel="Full"/>

</serverProviders>

</channel>

</channels>

All works ok, and now I want to set keep alive of my http web requests to false. How can I do it?

Thanks, Rui

[4453 byte] By [RuiRosaMendes] at [2007-12-23]
# 1
Not what you're asking, but you can set it on the IIS server.
LucianBargaoanu at 2007-8-31 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...
# 2

I already knew this option of IIS. I was trying to achieve a solution on the client-side (directly in code).

As I understand:

- the un-checking of the Keep Alive option, will force the closing of the connection after the response.

- A solution on client site, can’t be achieve on the context (configuration) I describe.

Right?

Thanks, Rui

RuiRosaMendes at 2007-8-31 > top of Msdn Tech,.NET Development,.NET Remoting and Runtime Serialization...

.NET Development

Site Classified