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
9
votes
4 answers

What are the benefits of migrating our application over to WCF as opposed to continuing to use .NET Remoting?

Alright, so I've asked several questions on StackOverflow about .NET Remoting, and there is always at least one person who just has to chime in, ".NET Remoting is deprecated, use WCF instead." I understand that it's deprecated and there is no…
codewario
  • 19,553
  • 20
  • 90
  • 159
9
votes
1 answer

How to change Powershell CLR version when running commands remotely?

I've got a problem trying to run some of our scripts on a remote server. We need all Powershell sessions to load v4 of the CLR, as we're loading in our own custom binaries with our scripts. We've been doing this for some time (we do so using a…
Richiban
  • 5,569
  • 3
  • 30
  • 42
9
votes
2 answers

How can a 32 bit process communicate with a 64 bit process in .NET?

Windows does not make it possible for a 32 bit process to load a 64 bit dll, so I am trying to use remoting in order to allow the 32 bit process to interact with a 64 bit process. Here's the problem: while the two applications are located on the…
John Smith
  • 4,416
  • 7
  • 41
  • 56
9
votes
1 answer

Asynchronous Remoting calls

We have a remoting singleton server running in a separate windows service (let's call her RemotingService). The clients of the RemotingService are ASP.NET instances (many many). Currently, the clients remoting call RemotingService and blocks while…
CVertex
  • 17,997
  • 28
  • 94
  • 124
8
votes
3 answers

.NET Remoting, passing objects into methods

I am writing a .NET Remoting application. I have my dll, server, and client all working correctly. However, when I try to change my method call to take an object parameter instead of a simple type like an int, it complains with this error. Type…
Steven Combs
  • 1,890
  • 6
  • 29
  • 54
8
votes
1 answer

TargetException in RealProxy Invoke Message for generic type call in a method group

Let's say I have an generic interface IService and a class implementing it Service : IService I create a proxy of that interface : var proxy = new DynamicProxy>(new Service()).GetTransparentProxy() as…
oleveau
  • 200
  • 1
  • 13
8
votes
2 answers

.NET Remoting switching channels by itself

We are having an odd problem with .NET Remoting. Basically, we have a server which registers two TcpChannels with ChannelServices.RegisterChannel(): One listens on port 50000 Other one listens on port 15000. We then have a client that registers…
Sploofy
  • 493
  • 5
  • 13
8
votes
1 answer

What are real and transparent proxies

In .NET remoting, there are two kind of proxies: Transparent Proxies Real Proxies What is the difference between them?
Saveen
  • 702
  • 2
  • 14
  • 34
8
votes
3 answers

Double hop access to copy files without CredSSP

hello, We have large environment with hundreds of virtual machines. During our services deployment we need to copy some files from build drop to all these machines. So, we have: User machine, where deployment scripts executing Build drop machine,…
Anton
  • 10,890
  • 8
  • 45
  • 54
8
votes
2 answers

COM+ remoting error code 8000401a because password of This User under Identity tab getting reset

I am an admin in my COM+ server machine, my COM+ server component identity set to "This User" and provided my credentials there. I could invoke my component from client machine. But client app will stop working after some time with errorcode…
Shanadas
  • 515
  • 1
  • 6
  • 22
8
votes
1 answer

NET Remoting and MarshalByRefObject is really dead?

I'm working on a project requiring inter-AppDomain-intra-process and inter-process-intra-machine communication. Yes... I know... NET Remoting is widely considered a legacy technology but I'm facing with two very special problems and maybe in these…
unlikely
  • 398
  • 2
  • 8
7
votes
1 answer

My test indicates .NET Remoting is faster than WCF 4 by a factor of 1.5

In order to tell whether my project should migrate from .net remoting to WCF, I extracted its network communication part and implemented it by WCF. I run the remoting version and wcf version and eventually find remoting is faster than wcf by a…
Gqqnbig
  • 5,845
  • 10
  • 45
  • 86
7
votes
2 answers

'ref' keyword and AppDomains

When I started using C# I was unsure of how references were treated exactly (whether they were being passed by value etc.). I wrongly thought the 'ref' keyword was needed when passing objects that would be modified by the called method. Then after…
LegendLength
  • 473
  • 3
  • 11
7
votes
1 answer

How to transfer constructor parameters to AppDomain.CreateInstanceXXX?

My class has no default parameterless constructor. It has such a constructor instead: public Section(string fileName) {...} I am to create an instance of my class inside of some AppDomain. If my class had a default constructor, then I would do it…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
7
votes
1 answer

LogicalCallContext flows across await in Console App but not VS UnitTest

I am using the Logical CallContext to flow information back across a series of awaits. Interestingly, in my test console app, everything works fine. However, when running my unit test in the context of a VS UnitTest, the call context does not seems…
Ayo I
  • 7,722
  • 5
  • 30
  • 40