Questions tagged [.net-remoting]

.NET Remoting is a legacy technology of the .NET Framework for distributed applications. For development of new distributed applications it is recommened to use Windows Communication Foundation (WCF)

274 questions
5
votes
1 answer

Getting Error with .NET REMOTING C#

Here is the error I'm getting. I have a simple .Net Remoting setup. This error comes up after a few minutes of the connection being idle. Object '/7966b546_734e_410d_817a_a0e701f114f6/lfxehvbcznjzkycgbimraglb_1.rem' has been disconnected or does not…
Mikael
  • 95
  • 1
  • 2
  • 7
5
votes
2 answers

How do the ISponsor and ILease interfaces work?

I've created a object that inherits from MarshalByRefObject and ISponsor. In my implementation of ISponsor I just return a timespan to indicate how long I want the object renewed for. When I call InitializeLifetimeService() to get an ILease…
dmck
  • 7,801
  • 7
  • 43
  • 79
4
votes
1 answer

Primary Interop Assembly (PIA)

What benefits do you get from using PIA when around .NET remoting? I have been asked this question in an interview and my answer was around COM objects, but someone insisted it has benefits around connectivity when using .NET remoting, I searched…
JuliaS
  • 65
  • 4
4
votes
2 answers

Azure Service Fabric Remoting with generic parameter

I am sending a generic parameter in my Service Fabric application method via service remoting. my Interface is as follows: public interface IMyServiceRemoting : IService { Task GetMessageFromServer(T hint)// a hint could be of byte[]…
Pranay Deep
  • 1,371
  • 4
  • 24
  • 44
4
votes
1 answer

What encryption method does .NET use when setting secure="true" in a remoting channel configuration?

We have been asked by a customer which encryption methods are used for our remoting calls -- we use the secure="true" tokenImpersonationLevel="impersonation" attributes on the channel in the configuration file. Is this using Kerberos? NTML?…
Dr Herbie
  • 3,930
  • 1
  • 25
  • 28
4
votes
1 answer

Remoting set timeout

.NET remoting is used in my brownfield application. We decided to set timeouts for our remoting methods. System.Collections.IDictionary properties = new System.Collections.Hashtable(); properties["name"] = Ipc_Channel_Name; properties["timeout"] = 1…
Andrei Schneider
  • 3,618
  • 1
  • 33
  • 41
4
votes
1 answer

Double value changed after transmitting it via .NET remoting

I have an application which uses ADO.NET datasets and data adapters in combination with remoting (client/server architecture, transmitting datasets via remoting). I now face the following issue: TL;DR: double value 44.850000925362000 turns into…
urbanhusky
  • 1,336
  • 13
  • 35
4
votes
1 answer

Why AppDomain.GetLifetimeService returns null?

My application uses AppDomain in order to load a dll. If i don't call methods from the AppDomain for more than 5 minutes, when I call a method again I get this error: Object '[...].rem' has been disconnected or does not exist at the server. I…
Homer1982
  • 441
  • 4
  • 16
4
votes
0 answers

Memory leaks when using MarshalByRef in .Net

I've come across an interesting issue, which is really two-fold I guess. I'll try and keep this focused though. I have an environment set up in which an assembly is programmatically compiled and loaded into a child app domain. A class from that…
manderson
  • 544
  • 1
  • 5
  • 19
4
votes
2 answers

Why can't we have a class marked [Serializable] and at the same time inheriting from MarshalByRefObject?

I know it sounds stupid but I am just being curious. My lecturer asked this question and we were clueless. :D
Gayan Jayasingha
  • 752
  • 2
  • 17
  • 33
4
votes
1 answer

Can I hook into the expiration of a remoting object?

I have a class which inherits from MarshalByRefObject, and in it I am overriding the lifetime service to give it an InitialLeaseTime of two hours: public override object InitializeLifetimeService() { // Expire after two hours. var lease =…
AndrewL
  • 3,126
  • 5
  • 31
  • 33
4
votes
2 answers

Object reference not set to an instance of an object on build web site

I have a web site that is just serving as a Remoting Server and has remoting configuration inside its web.config file.
teenup
  • 7,459
  • 13
  • 63
  • 122
4
votes
1 answer

Is MarshalByValueComponent still used or useful?

I have been exploring reinventing the DataTable and I am wondering what the uses are for MarshalByValueComponent. I believe it is used for .NET Remoting (maybe WinForms and WebForms), but that was replaced superseded by WCF. I cannot find any…
Dustin Kingen
  • 20,677
  • 7
  • 52
  • 92
4
votes
1 answer

System.Runtime.Remoting.RemotingException: Requested Service not found

I have the following code in my Web.Config in a remoting project which is having a reference to a dll of another class library. The class library has the following class inside it: public class Generator: MarshalByRefObject, IGenerator { } When…
teenup
  • 7,459
  • 13
  • 63
  • 122
4
votes
2 answers

remoting callback object lifetime

I've wrote a piece of code similar to the example in this post: .NET Remoting callback (Pass a callback object to a remote method). As I found out, if I didn't override MarshalByRefObject.InitializeLifetimeService() After a while, the server failed…
Jimbidf
  • 391
  • 1
  • 15
1 2
3
18 19