471,353 Members | 1,680 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,353 software developers and data experts.

.net remoting - not listening

Hi

I have a problem with my server which is not visible after netstat -na
command.

1. remote class library compiled to dll and registered to GAC

namespace RemoteClass
{
public class Mathematica : MarshalByRefObject
{
public int GetProduct(int a, int b)
{
return a * b;
}

public string GetHostLocation()
{
return AppDomain.CurrentDomain.FriendlyName;
}
}
}

2. server created and configured
namespace RemotingHost
{
class Program
{
static void Main(string[] args)
{

System.Runtime.Remoting.RemotingConfiguration.Conf igure(AppDomain.CurrentDomain.SetupInformation.Con figurationFile,false);

Console.WriteLine("Press any key to shut down the
server");
Console.ReadLine();
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton" type="RemoteClass.Mathematica,
RemoteClass" objectUri="RemoteClass"/>
<channels>
<channel ref="tvp" port="5000"/>
</channels>
</service>
</application>
</system.runtime.remoting>
</configuration>
Can you help me with this example? I don't have any ideas why server
is not listening. Firewall is switched off. i have also tried to set
objectUri to Mathematica
Kind regards
PK
Jun 27 '08 #1
3 1527
"Piotrekk" <Pi*************@gmail.comwrote in message
news:e1**********************************@k37g2000 hsf.googlegroups.com...
Hi

I have a problem with my server which is not visible after netstat -na
command.

1. remote class library compiled to dll and registered to GAC

namespace RemoteClass
{
public class Mathematica : MarshalByRefObject
{
public int GetProduct(int a, int b)
{
return a * b;
}

public string GetHostLocation()
{
return AppDomain.CurrentDomain.FriendlyName;
}
}
}

2. server created and configured
namespace RemotingHost
{
class Program
{
static void Main(string[] args)
{

System.Runtime.Remoting.RemotingConfiguration.Conf igure(AppDomain.CurrentDomain.SetupInformation.Con figurationFile,false);

Console.WriteLine("Press any key to shut down the
server");
Console.ReadLine();
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton" type="RemoteClass.Mathematica,
RemoteClass" objectUri="RemoteClass"/>
<channels>
<channel ref="tvp" port="5000"/>
</channels>
</service>
</application>
</system.runtime.remoting>
</configuration>
Can you help me with this example? I don't have any ideas why server
is not listening. Firewall is switched off. i have also tried to set
objectUri to Mathematica
Kind regards
PK

what channel is "tvp" supposed to relate to?
<channel ref="tvp" port="5000"/>

Willy.

Jun 27 '08 #2
>
what channel is "tvp" supposed to relate to?
<channel ref="tvp" port="5000"/>

Willy.
Sorry - this is only mistake during copy paste - I have changed it to
tcp, however it is not working.
Jun 27 '08 #3
"Piotrekk" <Pi*************@gmail.comwrote in message
news:6a**********************************@m44g2000 hsc.googlegroups.com...
>
>>
what channel is "tvp" supposed to relate to?
<channel ref="tvp" port="5000"/>

Willy.

Sorry - this is only mistake during copy paste - I have changed it to
tcp, however it is not working.

Another mistake during copy/paste?

<service>
<wellknown mode="Singleton" type="RemoteClass.Mathematica,
RemoteClass" objectUri="RemoteClass"/>
</service>
<channels>
<channel ref="tcp" port="5000"/>
</channels>
Willy.

Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Catherine Jones | last post: by
1 post views Thread by Nick | last post: by
reply views Thread by MS Newsgroups | last post: by
1 post views Thread by Thomas René Sidor | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.