473,788 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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 : MarshalByRefObj ect
{
public int GetProduct(int a, int b)
{
return a * b;
}

public string GetHostLocation ()
{
return AppDomain.Curre ntDomain.Friend lyName;
}
}
}

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

System.Runtime. Remoting.Remoti ngConfiguration .Configure(AppD omain.CurrentDo main.SetupInfor mation.Configur ationFile,false );

Console.WriteLi ne("Press any key to shut down the
server");
Console.ReadLin e();
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<system.runtime .remoting>
<application>
<service>
<wellknown mode="Singleton " type="RemoteCla ss.Mathematica,
RemoteClass" objectUri="Remo teClass"/>
<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 1641
"Piotrekk" <Pi************ *@gmail.comwrot e in message
news:e1******** *************** ***********@k37 g2000hsf.google groups.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 : MarshalByRefObj ect
{
public int GetProduct(int a, int b)
{
return a * b;
}

public string GetHostLocation ()
{
return AppDomain.Curre ntDomain.Friend lyName;
}
}
}

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

System.Runtime. Remoting.Remoti ngConfiguration .Configure(AppD omain.CurrentDo main.SetupInfor mation.Configur ationFile,false );

Console.WriteLi ne("Press any key to shut down the
server");
Console.ReadLin e();
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<configuratio n>
<system.runtime .remoting>
<application>
<service>
<wellknown mode="Singleton " type="RemoteCla ss.Mathematica,
RemoteClass" objectUri="Remo teClass"/>
<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.comwrot e in message
news:6a******** *************** ***********@m44 g2000hsc.google groups.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="RemoteCla ss.Mathematica,
RemoteClass" objectUri="Remo teClass"/>
</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
2927
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 use them. No IIS. Use TCP, binary. Standard server example with a console host and console client. .NET 1.1, windows XP. (I tried posting to the remoting newsgroup, no answers in the last couple days, trying here in hopes that more people watch this...
6
2804
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 in C# and we're using remoting for client to server communication.
1
8993
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 Remote object method is invoked, following error happens
1
1626
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 computer that the object resides on. I have looked into remoting but I am getting confused as to what method to use to achieve this kind of result. Can I have several clients all using the same channel listening for a method call with my object...
3
2087
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 identify a message in the MS Queues he listens on, and send it to the relevant clients (not all need to get all messages) it can send the message through an event or an interface.?
0
1432
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 can't get the application to "Remote" basically what happens is that the client side uses the dll in the same directory instead of the remote one. I can test this by stopping the hosting application, and the client still works. I have a feeling...
0
1386
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 she gets a time out if the host is not listening, but I'd like to show her a status message before she bothers trying, e.g. host is currently online/offline. So, I need a way to ping my asp.net chat host app to see if the host for that...
0
4208
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 to callback to the client: "This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server." I have try all...
1
1970
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 testing client (C), a http-server (H) and a file server (F) - with the following setup: H acts as an external interface to F, that is any given C connect to
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10175
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.