the call to function in remote object is stuck (lock)



hi all,
I'm programming with VS2005 (c#) and I got problem when I implemented
local remoting
I created windows service that act like remote host, the service have
timer and run the
command RemotingConfiguration.Configure on OnStart function

the config file look like this:
<configuration>
<system.runtime.remoting>
<application name="RemoteHostService">
<service>
<wellknown type="RemoteObject.Sample, RemoteObject"
objectUri="RemoteObject.Sample" mode="Singleton" />
</service>
<channels>
<channel ref="tcp" port="8085">
<serverProviders>
<formatter ref="binary" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>

the remote object contains this code:
using System;
using System.Diagnostics;

namespace RemoteObject
{
/// <summary>
/// Summary description for Class1.
/// </summary>
public class Sample : MarshalByRefObject
{
public Sample()
{
//
// TODO: Add constructor logic here
//
}
public int Run()
{
return 0;
}

}
}

the relevant code in the the remote client:
TcpChannel chan = new TcpChannel();
ChannelServices.RegisterChannel(chan);
Sample samp = (Sample)Activator.GetObject(
typeof(RemoteObject.Sample),
"tcp://localhost:8085/RemoteObject.Sample");
if (samp == null)
System.Console.WriteLine("Could not locate server");
else
Console.WriteLine(samp.Run);

but the program stuck when it tries to call Run,
I'll appreciate if someone know how to fix it or why I have a problem
like this

Best Regards,
Dave

.



Relevant Pages

  • Re: Passing Form Objects Via Remoting
    ... you've just posted the first good reason I've ever heard to remote a ... We do XP programming here ... As a general rule in remoting, ... The reason I'm looking into this is ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: 2006 Toyota Corolla Remote Keyless Entry
    ... I have succesfully placed the car in programming mode ... the ones the remote vendor sent me, ... PROGRAMMING ADDITIONAL or REPLACEMENT TRANSMITTERS ... The SECURIKEY+ main control module uses a six channel radio frequency ...
    (alt.autos.toyota)
  • Re: Accord Replacement Keys
    ... changed the remote program for both keys. ... The remote lock/unlock system and programming a ... I did see in the Honda Security Systems Owner's Manual printed in 2002 ... equipped with Standard Keyless Entry System." ...
    (rec.autos.makers.honda)
  • Re: 1999 New Beetle, Cost Effective Switchblade Keys with Remotes
    ... one switchblade key with a remote and one valet key. ... second key made should be cheaper as they have the programming codes after ... Ford charges a fraction of VW's cost for their transponder keys. ...
    (rec.autos.makers.vw.watercooled)
  • Re: Orchid Users bad news
    ... As of March 1st 2009 the free remote programming service, CW Client, ... We will continue to give our utmost support to all your dialler needs. ...
    (uk.telecom)

Loading