Questions tagged [remoting]

.NET Remoting is a Microsoft application programming interface (API) for interprocess communication released in 2002 with the 1.0 version of .NET framework.

.NET remoting enables you to build widely distributed applications easily, whether the application components are all on one computer or spread out across the entire world. You can build client applications that use objects in other processes on the same computer or on any other computer that is reachable over its network. You can also use .NET remoting to communicate with other application domains in the same process.

Note: As of version 3 of the .NET framework, remoting is considered a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Instead of remoting, it is now recommended to develop distributed applications using the Windows Communication Foundation (WCF).

1152 questions
6
votes
2 answers

.NET Remoting and HttpContext.Current

We have a plugin system where the plugin code runs on a separate AppDomain from the main process, using .NET remoting for the objects to communicate. One class is similar to HttpContext.Current (which also suffers from the problem) (edit, the…
Snea
  • 1,867
  • 2
  • 14
  • 21
6
votes
3 answers

Good .Net Remoting Tutorial/Guide

Does anyone have any links to a good, concise, Tutorial or guide to .Net remoting? Would be grateful! Thanks (sorry for the short post!) Edit: I am now aware of: http://www.codeproject.com/KB/XML/remotingsimpleeng.aspx
Damien
  • 13,927
  • 14
  • 55
  • 88
6
votes
5 answers

Any 'quick wins' to make .NET remoting faster on a single machine?

I've been badly let-down and received an application that in certain situations is at least 100 times too slow, which I have to release to our customers very soon (a matter of weeks). Through some very simple profiling I have discovered that the…
Ian Goldby
  • 5,609
  • 1
  • 45
  • 81
6
votes
8 answers

Remoting performance degrades over the time

I'm working on a client-server solution that uses .NET 2.0 Remoting (server activation, binary formatting over TCP channel, Vista Ultimate) for communication purposes. Currently I'm profiling the application and run everything on the same machine. I…
wasker
  • 1,959
  • 2
  • 19
  • 32
6
votes
3 answers

Returning an interface from a WCF service

I have some .NET remoting code where a factory method, implemented in some server side class, returns interfaces to concrete objects, also executing on the very same server. .NET remoting automagically creates proxies and allows me to pass the…
Pierre Arnaud
  • 10,212
  • 11
  • 77
  • 108
6
votes
1 answer

Remoting from a Swing app to GWT server

To put it simple, I've written a JSE Swing app that needs to talk to a GWT server I've written earlier. I absolutely love the way GWT does remoting between it's javascript and server sides and wish I could utilize this mechanism. Has anyone managed…
yanchenko
  • 56,576
  • 33
  • 147
  • 165
6
votes
4 answers

How to debug .NET remoting calls?

I have an app with the following basic architecture: A windows service (Service) that registers a .NET type (RemoteObject) for remote access (.NET Remoting). RemoteObject creates non-ThreadPool threads that use the ThreadPool to do IO processing.…
Chris
  • 3,664
  • 6
  • 34
  • 44
6
votes
6 answers

net use * /delete /y doesn't resolve error "New-PSDrive : Multiple connections to a server ...."

This New-PSDrive command New-PSDrive -Name Z -PSProvider FileSystem -Root \\$j\share -Credential $credentials -ErrorAction Stop Causes the error New-PSDrive : Multiple connections to a server or shared resource by the same user, using more than…
Glowie
  • 2,271
  • 21
  • 60
  • 104
6
votes
1 answer

Detect a transparent proxy vs actual object reference?

Given an object reference, is it possible to programmatically determine if the object was created in the current appdomain or instead is a proxy to an object in another appdomain?
redman
  • 1,510
  • 17
  • 33
6
votes
3 answers

.NET Remoting Singleton memory leak, TCP, Marshal by Reference

I am using the simplest example of remoting that I could find, sharing an object between a windows service and a windows forms program (client), running on the same machine. The service instantiates the object like this: serviceConfigRemote = new…
mlusby
  • 641
  • 8
  • 21
6
votes
3 answers

Remoting and missing channel sinks

I ran into a remoting exception: "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." The cause is…
redman
  • 1,510
  • 17
  • 33
6
votes
2 answers

.Net Remoting uses only one connection ?

Does .Net Remoting opens multiple connections or just one ? let say I have a server and a client. if the client creates multiple SingleCall objects. then for every object is there going to be a new connection or there going to be a single…
user2094406
  • 93
  • 1
  • 2
  • 4
6
votes
5 answers

How to initialize Hibernate entities fetched by a remote method call?

When calling a remote service (e.g. over RMI) to load a list of entities from a database using Hibernate, how do you manage it to initialize all the fields and references the client needs? Example: The client calls a remote method to load all…
cretzel
  • 19,864
  • 19
  • 58
  • 71
5
votes
1 answer

Why does an IpcChannel tell me, "Cannot open an anonymous level security token?"

I have a pretty simple client-server app that I am using to separate two components that can't live together in the same process. When developing them (the server is an exe, the client is a library), all my unit tests are happy as pigs in manure.…
Neil
  • 417
  • 5
  • 12
5
votes
3 answers

How to use custom serialization during .NET remoting?

I've written a custom serialization routine that does not use ISerializable or the SerialzableAttribute to save my objects to a file. I also remote these same objects and would like to use the same serialization technique. However, I don't want to…
Michael Hedgpeth
  • 7,732
  • 10
  • 47
  • 66