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
23
votes
7 answers

Cannot create remote powershell session after Enable-PSRemoting

I can not remote into any machine to save my life! I have tried everything I can find. If anyone could troubleshoot or guide me, I'd appreciate it as this would be a great tool to add on my domain. SETUP: Client machine inside domain Server…
user1056661
  • 340
  • 1
  • 2
  • 7
22
votes
2 answers

What is a Channel Factory in .NET?

What is a Channel Factory and why do you use it?
Nevin Mathai
  • 2,316
  • 13
  • 39
  • 54
21
votes
12 answers

Get external IP address over remoting in C#

I need to find out the external IP of the computer a C# application is running on. In the application I have a connection (via .NET remoting) to a server. Is there a good way to get the address of the client on the server side? (I have edited the…
Patrik Svensson
  • 13,536
  • 8
  • 56
  • 77
20
votes
1 answer

Mixing secure & unsecure channels

I am unable to use an unsecure channel once a secure channel has already been registered. The code below works only if on the client side, the unsecured channel is registered before. Is it possible to mix secure and unsecure channels without any…
ded'
  • 664
  • 4
  • 11
19
votes
5 answers

Maven WAR dependency - cannot resolve package?

I have a war dependency: my.package myservices 0.3 war Now, this exists in my local repository, and the…
Stefan Kendall
  • 66,414
  • 68
  • 253
  • 406
19
votes
3 answers

In .NET remoting what is the difference between RemotingConfiguration.RegisterWellKnownServiceType and RemotingServices.Marshal?

In .NET remoting what is the difference between RemotingConfiguration.RegisterWellKnownServiceType and RemotingServices.Marshal? What I want to do is create an object in a Windows Service, then put it in as a remoting object and have the Windows…
David Basarab
  • 72,212
  • 42
  • 129
  • 156
19
votes
1 answer

How to debug a __transparentProxy instance in VisualStudio 2008?

I'm currently working on a debugging topic to improve the debugging to __TransparentProxy instance resolved from Unity's TransparentProxyInterceptor. The common debugging scenario is that while the program is breaking, I want to see the public…
Liu Nate
  • 604
  • 1
  • 6
  • 13
18
votes
1 answer

Requested Service not found

I have a windows service application which works using remoting. It is used to display baloon tip. However, it sometimes throws this error: Exception :Requested Service not foundInner Exception : Stack Trace : Server stack trace: at…
mathirengasamy
  • 191
  • 1
  • 6
17
votes
4 answers

Use the [Serializable] attribute or subclassing from MarshalByRefObject?

I'd like to use an object across AppDomains. For this I can use the [Serializeable] attribute: [Serializable] class MyClass { public string GetSomeString() { return "someString" } } Or subclass from MarshalByRefObject: class MyClass:…
Theo Lenndorff
  • 4,556
  • 3
  • 28
  • 43
16
votes
4 answers

Fastest serializer and deserializer with lowest memory footprint in C#?

I am currently using the binary formatter (Remoting) to serialize and deserialize objects for sending around my LAN. I have recently upgraded from 2.0 to .NET 3.5. Has 3.5 introduced any new types to improve serialization performance? I’ve looked at…
CodingHero
  • 173
  • 2
  • 5
15
votes
1 answer

How to exclude nonserializable observers from a [Serializable] INotifyPropertyChanged implementor?

I have almost a hundred of entity classes looking like that: [Serializable] public class SampleEntity : INotifyPropertyChanged { private string name; public string Name { get { return this.name; } set { this.name = value;…
skolima
  • 31,963
  • 27
  • 115
  • 151
15
votes
2 answers

How does impersonation in DCOM work?

I have a DCOM client and server applications which use OLE automation marshaller. They work fine when run on the same PC but when the server is on a different PC not in the same domain I get E_ACCESSDENIED (0x80070005). Server PC is configured with…
himself
  • 4,806
  • 2
  • 27
  • 43
15
votes
1 answer

Cross-AppDomain call corrupts the runtime

This was originally a much more lengthy question, but now I have constructed a smaller usable example code, so the original text is no longer relevant. I have two projects, one containing a single struct with no members, named TestType. This project…
IS4
  • 11,945
  • 2
  • 47
  • 86
15
votes
5 answers

What is the best way for a client app to find a server on a local network in C#?

The client connects to the server using GenuineChannels (we are considering switching to DotNetRemoting). What I mean by find is obtain the IP and port number of a server to connect to. It seems like a brute-force approach would be try every IP on…
Davy8
  • 30,868
  • 25
  • 115
  • 173
15
votes
3 answers

How can I subscribe to an event across AppDomains (object.Event += handler;)

I'm having the problem described in this message board post. I have an object that is hosted in its own AppDomain. public class MyObject : MarshalByRefObject { public event EventHandler TheEvent; ... ... } I'd like to add a handler to…
Cheeso
  • 189,189
  • 101
  • 473
  • 713
1
2
3
76 77