remoting

From VB6 to .net via COM and Remoting…What a mess!

穿精又带淫゛_ 提交于 2019-12-22 00:26:43
问题 I have some legacy vb6 applications that need to talk to my .Net engine application. The engine provides an interface that can be connected to via .net Remoting. Now I have a stub class library that wraps all of the types that the interface exposes. The purpose of this stub is to translate my .net types into COM-friendly types. When I run this class library as a console application, it is able to connect to the engine, call various methods, and successfully return the wrapped types. The next

.NET Remoting, why isn't a list remotable?

岁酱吖の 提交于 2019-12-21 19:26:03
问题 I'm using RemotingServices.Marshal and Activator.GetObject to establish a remoting channel between two simple programs residing on the same computer. public class IpcInterface : MarshalByRefObject { public int number = -1; public string text = "default"; public List<String> strings; } // A simplification I've confirmed that the channel exists and communication is possible, because both programs are successfully changing number and text to completely unique values (confirmed). So I immediately

How to hide Akka remote actors from lookup?

自闭症网瘾萝莉.ら 提交于 2019-12-21 05:27:18
问题 I am running the Akka 2.0.2 microkernel and want to implement an authentication scheme for untrusted remote actors. The first thing that comes to mind is to set up an authentication actor which returns a reference to the work actor when authentication succeeds. However, how should I protect the work actor from simply being directly looked up remotely via actorFor(), circumventing authentication altogether? That is, I want to prevent remote actors from accessing actors in my microkernel actor

Use the [Serializable] attribute or subclassing from MarshalByRefObject?

不打扰是莪最后的温柔 提交于 2019-12-20 09:37:17
问题 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: MarshalByRefObject { public string GetSomeString() { return "someString" } } In both cases I can use the class like this: AppDomain appDomain = AppDomain.CreateDomain("AppDomain"); MyClass myObject = (MyClass)appDomain.CreateInstanceAndUnwrap( typeof(MyClass)

Remoting and missing channel sinks

删除回忆录丶 提交于 2019-12-19 06:56:17
问题 I ran into a remoting exception: "This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server." The cause is best explained by this blog entry I found: The second case is more obscure. This occurs where the client makes a call to the server, the server returns an object reference, and the client then makes a call on the referenced object on the server. If

Remoting and missing channel sinks

房东的猫 提交于 2019-12-19 06:55:07
问题 I ran into a remoting exception: "This remoting proxy has no channel sink which means either the server has no registered server channels that are listening, or this application has no suitable client channel to talk to the server." The cause is best explained by this blog entry I found: The second case is more obscure. This occurs where the client makes a call to the server, the server returns an object reference, and the client then makes a call on the referenced object on the server. If

Switching off the .net JIT compiler optimisations

只谈情不闲聊 提交于 2019-12-18 11:44:45
问题 When we remote a method (that is using generics) the remoting sink cannot seem to discover our method from the other identical named ones. Debugging with .net source code attached I've got it to where there is a MethodInfo.MakeGenericMethod call. However I cannot look at any of the surrounding data as its been jit optimised. I couple of weeks ago I came across a registry setting that would disable this setting (it specifically mentioned that it aid debugging with the source). However being a

Is .NET Remoting really deprecated?

不问归期 提交于 2019-12-17 05:35:40
问题 Everyone is saying how .NET Remoting is being replaced by WCF, but I'm wondering just how accurate that is. I haven't seen any official word that Remoting is being deprecated, and it seems to me there are certainly scenarios where Remoting makes more sense than WCF. None of the Remoting-related objects or methods have been deprecated, even in version 4.0 of the framework. It is also my understanding that System.AddIn in the 3.5 and 4.0 frameworks use Remoting. Does anyone have any official

Is .NET Remoting really deprecated?

十年热恋 提交于 2019-12-17 05:35:08
问题 Everyone is saying how .NET Remoting is being replaced by WCF, but I'm wondering just how accurate that is. I haven't seen any official word that Remoting is being deprecated, and it seems to me there are certainly scenarios where Remoting makes more sense than WCF. None of the Remoting-related objects or methods have been deprecated, even in version 4.0 of the framework. It is also my understanding that System.AddIn in the 3.5 and 4.0 frameworks use Remoting. Does anyone have any official

Powershell remoting with ip-address as target

馋奶兔 提交于 2019-12-17 04:49:18
问题 I successfully enabled PSRemoting on my Server 2008 R2. I'm able to do a remote-pssession from within the same network using the hostname as target. I'm failing when I try to use the IP-Address as target from any computer (within the network or from another network (for example via VPN)). I want to be able to use remoting through my VPN connection where I have to use the IP-Address since the hostname can't be resolved. I don't want to add names into my hosts-file because there are a few other