473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 1621
"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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.