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
14
votes
3 answers

Working with singletons in .Net Remoting

I'm having a bit of a problem with a singleton class I'm exposing via remoting. In my server I have: TcpChannel channel = new TcpChannel( Settings.Default.RemotingPort ); ChannelServices.RegisterChannel( channel, false…
Todd
  • 620
  • 4
  • 13
14
votes
4 answers

.Net Remoting vs. WCF

I am working on a .Net website which is going to have 1000s of concurrent users. I am thinking of keeping the business components on the app server and UI components on the web server. Database (MS SQL Server 2005) will be hosted on another server.…
Jeremy Thomson
  • 999
  • 3
  • 16
  • 17
14
votes
2 answers

Why am I seeing slower performance here from WCF than Remoting?

Everything I'm told says that WCF should be at least as fast as remoting. I have a specific scenario here, however, where it isn't even close, and I'm wondering if someone can spot something obvious that I'm doing wrong. I'm looking into the…
Mark
  • 11,257
  • 11
  • 61
  • 97
13
votes
1 answer

Inter-AppDomain communication problem

I've been developing a Windows Service in C#. A set of configuration file paths is supplied to this service when it starts. For each of these files the service will spin up an AppDomain using the file as its ConfigurationFile and the folder of…
AnthonyWJones
  • 187,081
  • 35
  • 232
  • 306
12
votes
3 answers

Can I tell the CLR to marshal immutable objects between AppDomains by reference?

When marshaling objects between AppDomains in .NET the CLR will either serialize the object (if it has the Serializable attribute) or it will generate a proxy (if it inherits from MarshalByRef) With strings however the CLR will just pass the…
Yona
  • 9,392
  • 4
  • 33
  • 42
12
votes
3 answers

.NET Remoting vs. Web Services vs. Windows Communication Foundation (WCF)

Anyone willing to help me out with pros/cons on .NET Remoting, Web Services, and WCF? I have worked a bit with .NET Remoting and Web Services and I am architecting a new ASP.NET 3.5 web app where I will be using a SQL 2008 DB. Primarily I am…
Aaron
  • 2,427
  • 4
  • 30
  • 41
12
votes
4 answers

Unable to cast transparent proxy to type from AppDomain

I'm trying to create an object in an appdomain: var type = typeof (CompiledTemplate); var obj = (CompiledTemplate) domain.CreateInstanceAndUnwrap ( type.Assembly.FullName, type.FullName); However, I always get the following error: Unable to…
Mikayla Hutchinson
  • 16,113
  • 2
  • 44
  • 50
11
votes
0 answers

RemotingException thrown when invoking remote object from NUnit

I discovered a strange problem while playing with .Net Remoting and Mono. When I invoke a remote object in code executed by NUnit this exception is thrown: System.Runtime.Remoting.RemotingException : Cannot create channel sink to connect to URL…
NKnusperer
  • 974
  • 1
  • 11
  • 31
11
votes
3 answers

How do you increase the number of threads used by .NET Remoting over TCP?

We are trying to increase the number of threads used by .NET Remoting over TCP. We have tried changing the ThreadPool.SetMinThreads, but our stress tests show that .NET Remoting can only handle about 100 concurrent requests. (However this is not a…
meub
  • 2,288
  • 17
  • 19
11
votes
3 answers

Unable to access UNC Paths in Powershell remote session

I am unable to access the UNC paths on my servers in a Powershell remote session from my local machine. I am able to use them from Servers Cmd prompt directly. Actually, I have logged into the server and mapped a UNC path as local drive (say X:).…
user2610958
  • 113
  • 1
  • 1
  • 4
11
votes
5 answers

Remoting or WCF for new development (between two .NET apps on the same machine) using interfaces?

We want to have two .NET apps running on the same machine communicate with each other. We want three projects. A library containing interfaces. A "server" app that implements the interfaces and "client" app that communicates with the server using…
drs9222
  • 4,448
  • 3
  • 33
  • 41
11
votes
1 answer

Passing values back and forth appdomains

I have the following code: public class AppDomainArgs : MarshalByRefObject { public string myString; } static AppDomainArgs ada = new AppDomainArgs() { myString = "abc" }; static void Main(string[] args) { AppDomain…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
11
votes
5 answers

What are the pros and cons of Web Services and RMI in a Java-only environment?

When developing distributed applications, all written in Java by the same company, would you choose Web Services or RMI? What are the pros and cons in terms of performance, loose coupling, ease of use, ...? Would anyone choose WS? Can you build a…
cretzel
  • 19,864
  • 19
  • 58
  • 71
10
votes
3 answers

The channel 'tcp' is already registered

I want the given application (Windows Service) to act as a remoting server as well as remoting client. In production I will run the two instances of my application monitoring each other over .NET Remoting and will report the failures accordingly. I…
Khurram Aziz
  • 1,480
  • 5
  • 15
  • 24
10
votes
2 answers

How do I measure bytes in/out of an IP port used for .NET remoting?

I am using .NET remoting to retrieve periodic status updates from a Windows service into a 'controller' application which is used to display some live stats about what the service is doing. The resulting network traffic is huge - many times the size…
McKenzieG1
  • 13,960
  • 7
  • 36
  • 42
1 2
3
76 77