r***@gmail.com
2008-04-10 20:14:43 UTC
Hello,
I am finding that if the remoting client is misconfigured then client
calls can hang.
I'm using .Net 2.0 and secure tcp remoting.
Server side:
<!-- Remoting hosting section -->
<system.runtime.remoting>
<customErrors mode="off"/>
<application>
<service>
<wellknown mode="SingleCall"
type="Service.ServiceImplementation, Service" objectUri="server.rem" /
</service>
<channels>
<channel ref="tcp" secure="true" port="8080" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
Client side:- this setting works:
<system.runtime.remoting>
<customErrors mode="off"/>
<application>
<channels>
<channel ref="tcp" secure="true" impersonate="true"
tokenImpersonationLevel="Impersonation"/>
</channels>
</application>
</system.runtime.remoting>
If I remove the <channel> element I get no errors reported on either
end of the connection, but the client side hangs 'for ever' [got bored
after many minutes].
There is still a TCP session active, and if I exit the server then the
client fails immediately.
Does anyone know if there is a way to alter/detect/diagnose this
hang ?
In the overall system - more complex than this example - it is
sometimes very hard to diagnose this sort of configuration problem.
Regards,
Roger.
I am finding that if the remoting client is misconfigured then client
calls can hang.
I'm using .Net 2.0 and secure tcp remoting.
Server side:
<!-- Remoting hosting section -->
<system.runtime.remoting>
<customErrors mode="off"/>
<application>
<service>
<wellknown mode="SingleCall"
type="Service.ServiceImplementation, Service" objectUri="server.rem" /
</service>
<channels>
<channel ref="tcp" secure="true" port="8080" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
Client side:- this setting works:
<system.runtime.remoting>
<customErrors mode="off"/>
<application>
<channels>
<channel ref="tcp" secure="true" impersonate="true"
tokenImpersonationLevel="Impersonation"/>
</channels>
</application>
</system.runtime.remoting>
If I remove the <channel> element I get no errors reported on either
end of the connection, but the client side hangs 'for ever' [got bored
after many minutes].
There is still a TCP session active, and if I exit the server then the
client fails immediately.
Does anyone know if there is a way to alter/detect/diagnose this
hang ?
In the overall system - more complex than this example - it is
sometimes very hard to diagnose this sort of configuration problem.
Regards,
Roger.