remoting

.Net Remoting server dll in same directory as the executable

I have an application that hosts a remote object. For the client application to access this remote object; the dll with the remote server implemented, should be in the same directory where the executable of the server application resides. When I install this application the dll resides in a different directory and I manually paste the dl...

How can I tell if another app has registered an IPC Remoting channel?

So I have an application which has a .NET API available. Their API library communicates with their main application through .NET remoting calls. In order to use the API, the application must be up and running already. So, I have an instance where I need to programmatically start the application and then instantiate one of the API object...

Run a process on Linux remotely from a Windows machine

I would like to be able to run a process that exists on a Linux machine remotely from a JAVA application running on a Windows machine. What is the best way to do this? Or an online resource that might be of help to me? Thanks very much. ...

.NET Remoting Exception not handled Client-Side

I checked the rest of the remoting questions, and this specific case did not seem to be addressed. I have a .NET Remoting server/client set up. On the server side I have an object with a method that can throw an exception, and a client which will try to call that method. Server: public bool MyEquals(Guid myGuid, string a, string b) { ...

.NET remoting, custom sink provider.

When implementing IClientChannelSinkProvider's CreateSink method: public IClientChannelSink CreateSink(IChannelSender channel, String url, Object remoteChannelData) { IClientChannelSink nextSink = null; if (_next != null) { nextSink = _next.CreateSink(channel, url, remoteChannelData); if...

.NET Remoting - How to do a callback to all connected clients?

I'm studying .NET Remoting and I see an example on Remoting callbacks and events in .NET 2.0, A simple example. All works good. Now my problem is if I try to start another client, the server doesn't callback to all clients connected to it but only to the last one. How can I send callback to all clients? ...

.NET Remoting - How callback to all connected clients?

I'm studying the .NET Remoting and I see an example on: http://www.mctainsh.com/Articles/Csharp/RemoteCallback.aspx#A%5Fsimple%5Fexample ,all works good. Now my problem is if I try to start another client, server don't callback to all clients connected but only to last one. How can I send callback to all clients? ...

Exception while registering well know client type

Hi, I am using .NET remoting to communicate between the client and server. I implemented the client application and encountered an exception while registering an object on the client using "RegisterWellKnownClientType". The exception is "attempt to redirect activation of type which is already redirected". I get this exception only when ...

C#: Restrict .Net remoting to accept localhost connections only

I am using .Net Remoting to handle intra-process communication between a master service and numerous (sometimes 50+) instances of a small client library. From a security standpoint, it is imperative that the service only accepts connections from the local machine, and noone else -- yet I cannot find any information on how one does this, ...

How to Upload Multiple files Concurrently in Remoting

hi all I am doing Projects in remoting , i easily send/receive single files from a client.but i don't know how to send multiple files concurrently from a client.can anyone help me with this. please give somelinks i will feed on it. ...

inter process communication, IPC remoting

hi all, i'm using remoting to communication for IPC. basically, i have a vb.net exe app which manages the login process. this sits in the windows task bar and is the remoting server (using tcp). it is a winforms app as i need a login screen and a few other details to be served to client apps. my client apps connect look for the server ...

How to use App.config in .NET3.5 when using Remoting with out adding Remoting related configuation in App.config?

I am trying to use an App.config for a Windows Service application which is hosting Remoting and is developed in .NET3.5. In that App.config, I would like to keep some values which I will be using across the solution. I am not adding Remoting relation configuration stuff to it. But while running application it is expecting Remoting relat...

How to create an easy-to-program-for server for many clients in C#?

I suppose similar questions were already asked, but I was unable to find any. Please feel free to point me to an existing solutions. I'll explain my scenario. I'd like to create a server application. There are many clients (currently only a few dozens, but it should scale up to 1000+) that connect to the server (which is running on a si...

Secure TCP .NET Remoting Channel without Authentication

I have a .NET 2.0 remoting application that needs to communicate between machines that may be on different domains or no domain at all. It is using the TCP channel. Everything works fine until I enable encryption, then when connecting I get the error "The server has rejected the client credentials." I have done quite a bit of searching,...

.NET Remoting callback

Is it possible to transmit a callback via remoting? I'd like to do something along the lines of myRemoteObject.PerformStuff( x => Console.WriteLine(x) ); If not, how would I implement a equivalent functionality? Edit: I'm aware Remoting got superseded by WCF, but I'm still interested in this specific case. (Out of curiosity though, how...

.NET Remoting calling a WCF Service Reference errors with "Could not find default endpoint element that references contract"

I have .NET Remoting setup for a number of objects. It has been production for over a year and all is well with the setup. I've added a Service Reference today in a project called Entities. One of the classes with the Entities project calls this new Service Reference. The Entities project is class library. When I created Service Refere...

Activator.GetObject - Using the state parameter.

In .NET Remoting, Activator.GetObject method has a state parameter. What is the purpose of this state param? Can I retrieve its value from server side? mdsn didn't help much. What I'd like to do: Client side: ChannelServices.RegisterChannel(new TcpChannel(0)); object obj = Activator.GetObject(typeof(MyObj), "tcp://serverName:1234/Remot...

Recommended to use Lingo with Spring?

I'm going through some examples for how to configure asynchronous JMS messaging with Spring, and the book I'm going through, Spring In Action, 2nd Edition (I know there's a 3rd edition out there), mentions using Lingo (http://lingo.codehaus.org/ for messaged-based RPC asynchronous messaging. The latest version of Lingo is a couple yea...

StartService fails with error code 1053

Hi! I'm trying to start a process on a remote machine. I'm using OpenSCManager(), CreateService(), QueryServiceStatusEx() and StartService() API-s. I'm able to successfully install my process as a serice, but when i'm trying to start it, StartService returns with errorocode 1053 ("The service didn't respond to the start or control reque...

Calling a WCF service from a Remoted DLL

I have a process, let's call it Process A, that is hosting a simple WCF service exposed though a basic Http binding. If I spin up that process I can then access the service from another process, Process B, with no problems. However, my required use case isn't so simple. What I need to do is access the Service from a DLL that is hostin...