remoting

Can I use Interface for CAO in Remoting?

和自甴很熟 提交于 2019-12-08 03:06:42
问题 In CAO there is no URI, so specified type has to be registered on the server side. But if my client and server interact through the same interface (remote object implements interface) then how can I call CAO remote object from client side. It gives me exception if I try to call Acitvator.CreateInstance using interface type. for e.g. RemoteObject.IRemoteObject obj = (RemoteObject.IRemoteObject )Activator.CreateInstance(typeof(RemoteObject.IRemoteObject), null, url); above code throws exception

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]

Remoting in C# VS versioning

时光毁灭记忆、已成空白 提交于 2019-12-08 01:38:39
问题 Using Remoting in C#, I'm connecting to different servers. As I'm continuously adding features on the client side, the services on the server side isn't always up to date. How can I solve the issue that if I call a method in my interface (which invokes the method remotely on the server) and this method doesn't exist in the implementation on the server side? The client naturally crashes because there's an exception I cannot catch. Yes I could, but as there are many different Methods I call

Remoting server auto-discovery. Broadcast or not?

眉间皱痕 提交于 2019-12-07 12:02:59
问题 I have a client/server application that communicates with .Net remoting. I need my clients to be able to find the server(s) on the network without requiring client-side configuration. As far as I know, there is no support for discovery in remoting. I am prepared to implement a UDP solution where the clients will be able to find the servers via broadcast messages. I want to hear the collective SO wisdom before I go ahead. Is this the best way? Any other suggestions? 回答1: I've looked at both

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)

Cannot load type error, .Net Remoting

拥有回忆 提交于 2019-12-07 06:52:04
问题 i am trying to make a simple program that sends an id as an int and gets the data according to id. But i keep getting this error. Cannot load type 'remote.RemoteObjectClass, remoteclient, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Server TcpServerChannel channel = new TcpServerChannel(8086); ChannelServices.RegisterChannel(channel); RemotingConfiguration.RegisterWellKnownServiceType(typeof(Class1), "1", WellKnownObjectMode.Singleton); label1.Text = "started"; Client

Akka.net: Access remote Actors in Cluster

丶灬走出姿态 提交于 2019-12-07 05:21:46
问题 In an clustered environment I have a seed node and node1 and node2. From node1 I want to send a message to an Actor which has been created on node2. The local path to this node on node2 is akka:MyAkkaSystem/user/AnActor. Now I want to send a message from an Actor from node1 to this specific actor by using an ActorSelection like that: var actorSystem = ActorSystem.Create("MyTestSystem"); var c = actorSystem.ActorSelection("/user/ConsoleReceiver"); c.Tell("Hello World"); On node2 the actor has

NET Remoting and MarshalByRefObject is really dead?

和自甴很熟 提交于 2019-12-06 22:41:34
问题 I'm working on a project requiring inter-AppDomain-intra-process and inter-process-intra-machine communication. Yes... I know... NET Remoting is widely considered a legacy technology but I'm facing with two very special problems and maybe in these scenario WCF is not a full replacement of NET Remoting. 1) inter-AppDomain-intra-process communication The application I'm working on start and need to search and load one on more addins. I wish to load each addin in a separate AppDomain. I need a

How to include ipv6 addresses with (or without) zone indexes in uri for .net remoting?

*爱你&永不变心* 提交于 2019-12-06 16:35:36
This application publishes its own address for other systems to connect to using .net remoting. It gets all the addresses of the computer with something like: IPAddress[] IPList = Dns.GetHostEntry(Environment.MachineName).AddressList; string ipAddress = IPList[ipIndex].ToString(); if(ipAddress.contains(":")) { // ip6 address url = "tcp://[" + ipAddress + "]:" + port + "/" + name; } else { url = "tcp://" + ipAddress + ":" + port + "/" + name; } I added the square brackets in case it was getting confused by the colons as per this rfc. I think the problem is zone indexes - ToString() returns fe80

Can I use Interface for CAO in Remoting?

馋奶兔 提交于 2019-12-06 13:37:07
In CAO there is no URI, so specified type has to be registered on the server side. But if my client and server interact through the same interface (remote object implements interface) then how can I call CAO remote object from client side. It gives me exception if I try to call Acitvator.CreateInstance using interface type. for e.g. RemoteObject.IRemoteObject obj = (RemoteObject.IRemoteObject )Activator.CreateInstance(typeof(RemoteObject.IRemoteObject), null, url); above code throws exception. I'm not sure I can post a solution to your actual issue. However, I can explain why the code you've