.net-remoting

In .Net Remoting, what or where specifically is the “.NET Remoting Framework”?

柔情痞子 提交于 2019-12-12 05:58:55
问题 tl;dr: I'm trying to find where the .Net Remoting Framework runs (e.g., a service name or process name). Additionally, source would be amazing. Context: I'm maintaining legacy code that uses .Net remoting to allow the use of objects that store connection information between two processes, and which has long had problems with random disconnects and crashes apparently due to those remoting objects timing out. The issue we've seen is spoken about in the answer for this post, specifically the bit

In .Net Remoting, if you don't specify a remoting service in a configuration file or register one in code, what default settings are used?

人盡茶涼 提交于 2019-12-11 06:59:30
问题 Context I've inherited a .NET Remoting application which is having a problem where clients hang when trying to register shared objects with the server. This registration occurs an arbitrary period of time after the server is started with a call to 'register' on a shared ILease object. In the process of following the code path, I am trying to figure out where calls to RemotingServices.Marshal and RemotingServices.RegisterWellKnownSericeType are storing their information. My previous question's

Brute-force attack to .NET Remoting CAO

可紊 提交于 2019-12-11 03:45:29
问题 I'm trying to use .NET Remoting Client Activated Objects in order to keep client's authentication information during multiple calls instead of implementing a session management system which requires client sends session id in each call. As MSDN states: When the client submits a request for a server object using "new" operator, an activation request message is sent to the remote application. The server then creates an instance of the requested class and returns an ObjRef back to the client

Convert Bitmap image to String format to send over network(LAN) and vice-versa

女生的网名这么多〃 提交于 2019-12-11 02:16:03
问题 I am basically developing a software in Visual Studio 2010 .NET 4.0 where in I capture the screenshot from a pc and send it over a network to another. Since I cannot directly send a Bitmap, I have to convert it to String. I did a lot of internet search but cant find any solution. :( I found this code on stackoverflow itself. But it it doesnt work. I tried to print the string (converted from image) but the program behaves like that line doesnt exist. I used a MessageBox.Show(String); But not

Modify settings after calling RemoteConfiguration.Configure(configFile)?

让人想犯罪 __ 提交于 2019-12-10 11:49:23
问题 My application calls RemotingConfiguration.Configure() to set up .NET Remoting. But since I need the portName attribute of the channels element to be different each time the application is run, I have to configure this particular setting programatically. It sounds very simple (and probably is - but I've been searching Google all day for an answer). So far I have: RemotingConfiguration.Configure(Program.ConfigFilePath, false); IChannel[] regChans = ChannelServices.RegisteredChannels;

.NET Remoting over WCF?

*爱你&永不变心* 提交于 2019-12-10 09:40:50
问题 Why would you use .NET Remoting over WCF? I understand that WCF has its distinct advantages, but what advantages would .NET Remoting offer you over the more modern WCF technology? 回答1: WCF provides the ability to essentially do exactly what .NET Remoting does through the choice of binding you use when configuring your WCF service. WCF abstracts the idea of a service from the transport technology that is used to implement that service. You can define a WCF service and then change the transport

Difference between Serializable and MarshalByRefObject

落花浮王杯 提交于 2019-12-09 06:37:01
问题 I am very confused with [Serializable] and :MarshalByRefObject attribute in .NET Remoting .However i read many article on that. If i am using [Serializable] attribute then all methods are executed entirely in callers domain, it means that different callers should have copy of different methods on their own domain and any alteration done by one caller should not reflect on others.But when the same thing i am implementing in my program, i am not getting the desired result. 回答1: Serializable

Type resolution error during ASP.NET precompilation

天大地大妈咪最大 提交于 2019-12-08 03:04:08
问题 During ASP.NET precompilation of our .NET 3.5 web application, various initialization is performed in type initializers. One of the type initializers throws a custom exception when the environment is incorrectly configured. However, when our custom exception is thrown, here is what the aspnet_compiler.exe tells us: [exec] error ASPRUNTIME: Type is not resolved for member 'App.Project.CustomException,App.Project, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. [exec] [exec]

what happens when an object derives from MarshalByRefObject and is also marked [Serializable]?

安稳与你 提交于 2019-12-07 12:55:36
问题 I'm working on my first project that uses AppDomains and I'm wondering what happens when an object derives from MarshalByRefObject and is also marked [Serializable]? for example: [Serializable] public class DummyClass: MarshalByRefObject { } 回答1: It gets marshalled by reference, but can still be serialised for other use-cases for serialisation. There's an implementation detail to this that is interesting enough to be worth noting: The formatter that is serialising for remoting uses a

Remoting set timeout

淺唱寂寞╮ 提交于 2019-12-07 10:55:48
问题 .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 * 1000; IChannel clientChannel = new IpcClientChannel(properties, null); ChannelServices.RegisterChannel(clientChannel, false); The problem is that it seems that timeout doesn't work. I checked it by setting System.Threading.Thread.Sleep(5 * 1000)