.net-remoting

.NET Remoting over WCF?

Why would you use .NET Remoting over WCF? I understand that WCF has its distinct advantages, but what advantages would .NET Remoting offer you over the more modern WCF technology? ...

Is System.AddIn mostly about making it easier to use Remoting or does it make it harder to do so?

It takes at least 7 assemblies and restricting my AddIn's data model to data types that remoting can deal with before the appdomain isolation features begin to work. It is so complex! The System.AddIn teams blog implies to me they were trying to re-create a mental model of COM, a model I never understood very well in the first place and...

.NET Remoting - HttpChannel vs TcpChannel

I'm new to .NET Remoting and not very familiar with the different communication channels which can be used. I know there is HttpChannel and TcpChannel out of the box. I understand that one is Http while the other is Tcp, but I don't understand why Tcp is faster. ...

port allocation in remoting

in remoting is it possible to connect a particular port(client) to a remote server, i can specify the server port,is there any posibilitis to specify a client port example if server runs in x machine and server port is 8085 and client runs in y where itconnects the server exactly with the specified port ,but the client is connect...

How to handle IP Address rerouting with .NET Remoting

I have a process within a network that wants to talk to a service on another network. So I have two computers: Client Server 172.X.X.X reroute-> 172.X.X.X to 10.0.1.X With this setup, I can call the Server with the 172.X.X.X ip address and it maps to the 10.0.1.X address and talks fine. However, when I tr...

Having problem reaching client which don't have static ip address

i am making a messenger over internet. it has a server which listens to clients but when it try to send the reply to any request to client it shows the error of client not found. however my clients are connecting to that server because it has a static ip address and live server. having problem reaching client because they can be behin...

.NET remoting events sent to individual clients

I have an application that implements a simple timer (among other things). I wanted to use .NET remoting to be able to access the timer elapsed events from multiple other applications running on the same machine. I used: http://www.mctainsh.com/Articles/Csharp/RemoteCallback.aspx#A%5Fsimple%5Fexample as a reference for setting up the ev...

.NET Remoting - Redirect Message / Host Redundancy

I'm trying to accomplish some form of redirection of messages in .NET Remoting. As you can see in the image I would like for the client to send a message to the provider (which is the only URI that the client has to know about), which will then redirect this to host1. Here's the tricky part; the provider will keep track of which host i...

Using Unity 2.0 Interception with RemoteType LifeTimeManger?

I am using Unity 2.0 as my IOC container and I have created a LifeTimeManger for remote types very similar to what is describe in this thread. I have also implemented a IUnityContainer decorator for my client side container that attaches a policy injection interceptor for any types that have policies. The relevant code in the decorat...

Don't understand remoting activation

I have been working my way through the .NET Remoting Overview at http://msdn.microsoft.com/en-us/library/kwdt6w2k(v=VS.71).aspx , and I don't understand a couple of things, hope someone here can shed some light. In the Building a Basic .NET Remoting Remoting Application section, three assemblies are described: a remotable type, living...

.Net Remoting Question

My understanding of .Net Remoting is limited (and probably imperfect), so please bear with me. I've created a service that is hosting a singleton remoted object. It appears that the remoted object doesn't exist until a client attaches to the remoted object. Is this true? If so, how can I create an instance of the object in the servic...

.NET Remoting List All Server Activated Objects

Hi, I have a feeling that our .NET remoting services are getting overrun by objects instances that are hanging around on our server. I cannot change code the to add additional logging right now, as this is a deployed production instance. We do, however have a code console built into the application that will let us execute any code in...

How can we troubleshoot intermittent "An existing connection was forcibly closed by the remote host" errors when remoting

We have the "standard" three tier architecture with our middle tier hosted in IIS and accessed via .net remoting. These errors occur between our web and web services servers (front tier) that are remoting to the app servers (middle tier). We'll get this error 3-10 times a day out of ~130K total calls in the day. The exception and stac...

How to handle unexpected disconnect

Hi folks, I've got a question concerning best practices with .NET remoting. The code is smelly and I need to do some refactoring. The thing is: I've got multiple classes that derive from MarshalByRefObject and their data is used in the client software. Once the server disconnects I get RemotingException. The bad thing about this...

1 Dll, in our libraries... If called from webservice behaves as expected, if called from winform, uses remoting... HUH?

That's Pretty much it. I took a set of Active Directory classes we'd had in our webservices for years, and seperated & migrated it into our Libraries so I could also use them in a winform app I'm whipping up. Migration worked fine. Running it via the original webservice, works normally, I can debug into the Classes just fine. Same exa...