472,988 Members | 3,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,988 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 1600
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sean Newton | last post by:
I am absolutely bewildered by now by the Microsoft.Samples SSPI and Security assemblies. I've been trying to set these up in a very straightforward harness in the way that I'd like to be able to...
6
by: Catherine Jones | last post by:
Hi all, we need urgent help in a matter. We are trying to pass a COM object from the client to server and are facing some problems in the same. We've our client in C# as well as the Server...
1
by: vijay | last post by:
Hello I am learnign Dot NEt I have implemted 1. remote object 2.Listener 3.Client Listener started and listening to requests Client started and able to nstantiate remote object But when a...
1
by: Nick | last post by:
I have a c# program that holds a several objects. I would like this these objects sent to to several clients using remoting across seperate machines at a certain times that is determined by the...
3
by: S.Creek | last post by:
Hi, I am trying to build a multi clients application with C# that will send and receive messages using a listener on a server, the computers are all on the same LAN, the listener need to...
0
by: MS Newsgroups | last post by:
Hi, I am trying to get my head around remoting. I have managed to configure the samples on MSDN and that is working fine. I have now tried to build my own remoting application to test this and i...
0
by: Bill Borg | last post by:
Simple chat app where the chat host listens for requests and creates rooms/engages users as necessary. Visitor to, say, mysite.com enters her name and clicks 'go' to request a live chat. Right now...
0
by: Feng | last post by:
Hi, I need my remoting server to callback to my client and I am trying to do that using delegate. While the client invoking the server OK, I am getting the following error when the server trying...
1
by: Thomas René Sidor | last post by:
Hello Having been trying to find the root of this problem for several days I now hope that you can help me. I'm implementing a distributed file system - consisting of, at the moment, a...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.