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

Difference between transparent remoting and location transparency

I have googled a little to find a good explanation of the difference between the above two remoting strategies, i.e. transparent remoting and location transparency. As far as I know, the former is at the base of Java RMI, the latter at the base of…
riccardo.cardin
  • 7,971
  • 5
  • 57
  • 106
10
votes
1 answer

Assembly.ReflectionOnlyLoadFrom not working

I have an Assembly Library1.dll which contains some Interfaces, which were serialized as a byte array into the database. For some reasons we have to change the Interface properties and defintion. so now i am writing a migration utility. So i have 2…
netmatrix01
  • 630
  • 7
  • 21
10
votes
1 answer

Request to php file from Flash hangs in Safari

The last two days we've been going over this problem for several hours to figure out what's going on and we can't find any clues. Here's what's happening; We have a Flash application that allows people to place orders. Users configure a product and…
onomio
  • 361
  • 1
  • 11
10
votes
3 answers

How does [RemoteClass] work in Flex Actionscript can I use it for custom data-binding?

Actionscript supports a [RemoteClass] metadata tag that is used in BlazeDS to provide data-binding hints for marshalling AMF binary objects from Java to BlazeDS. For example: Java: package sample; public class UserInfo { private String…
Dougnukem
  • 14,709
  • 24
  • 89
  • 130
10
votes
2 answers

Get the AppDomain of object

Is there any way to determine in which AppDomain was an object or ObjectHandle instance created?
IS4
  • 11,945
  • 2
  • 47
  • 86
9
votes
4 answers

Send large byte arrays between AppDomains in the same process

I'm building a network server and starting a lot of AppDomains on the server to which requests are routed. What will be the fastest way to send off a request payload to one of the AppDomains for processing? Read in the payload from the socket into…
adam riech
9
votes
5 answers

Why does my C# Remoting object timeout, even with the Lifetime returning null?

this is a last resort after many days googling to try to find a definitive answer to my question. I have created a Windows service, a Windows form, and a Remoting object (all in C#). I am using the Remoting object to communicate between the service…
Matt P
  • 93
  • 1
  • 1
  • 4
9
votes
2 answers

How to access CORBA interface without IDL or late-bound invoke remoting methods

We have been using an SAP "COM License Bridge" to access their license server and query the hardware key of a system programatically (to reuse with out own licensing). This worked fine on SAP Business one Versions 2007A, 2007B and 8.8, but in 8.81…
BlueMonkMN
  • 25,079
  • 9
  • 80
  • 146
9
votes
1 answer

Identifying the client during a .NET remoting invocation

Given this MarshalByRef class: public class MyRemotedClass : MarshalByRef { public void DoThis() { ... } public void DoThat() { ... } } Client side code: MyRemotedClass m =…
Mr. Lame
  • 1,247
  • 1
  • 17
  • 27
9
votes
4 answers

.NET Remoting Speed and VPNs

I'm working on a project which uses .NET Remoting for communication between the client application and an object server. For development, the client, server, and MSSQL database are all running on my local development machine. When I'm working at…
Donovan Woodside
  • 1,911
  • 1
  • 19
  • 16
9
votes
3 answers

When messages get bigger, IpcChannel Remoting gets slower

I'm evaluating various interprocess communication methods for a couple of .NET 2.0 processes residing on the same machine. Naturally, .Net Remoting is a candidate, and theoretically the fastest configuration should be IpcChannel (named pipes) +…
Yodan Tauber
  • 3,907
  • 2
  • 27
  • 48
9
votes
2 answers

What causes "Tcp channel protocol violation expecting preamble" in .NET Remoting?

I have a distributed application that uses .NET Remoting on an in-house gigabit network. There is a single server, and over a dozen clients that connect to the server. The clients run multiple threads, and there can be up to 10 concurrent requests…
Jim Mischel
  • 131,090
  • 20
  • 188
  • 351
9
votes
3 answers

How do I pass references as method parameters across AppDomains?

I have been trying to get the following code to work(everything is defined in the same assembly) : namespace SomeApp{ public class A : MarshalByRefObject { public byte[] GetSomeData() { // } } public class B : MarshalByRefObject { private A…
Thiago Padilha
  • 4,590
  • 5
  • 44
  • 69
9
votes
3 answers

Lazy/Eager loading strategies in remoting cases (JPA)

I'm running into LazyLoading exceptions like the most people who try remoting with an ORM. In most cases switching to eager fetching solves the problem (Lazy Loading / Non atomic queries / Thread safety / n+1 problem ...). But eager fetching has…
Martin K.
  • 4,669
  • 7
  • 35
  • 49
9
votes
1 answer

What happens under the cover when you return a Stream from a remote object via .NET Remoting

I'm returning Streams from a remote service (.NET Remoting). But Streams are also disposables which as we all know are ment to be disposed. I could call Dispose on the client side once I finished consuming those. However, I would like to know what…
Christoph
  • 26,519
  • 28
  • 95
  • 133