.net-remoting

EasyHook, .NET Remoting sharing interface between both client and server?

廉价感情. 提交于 2019-12-03 04:01:12
How can both the IPC client and IPC server call the shared remoting interface (the class inheriting MarshalByRefObject) to communicate, without having to put the interface class inside in the injecting application? For example, if I put the interface class in the injected library project that gets injected into my target process, my injecting application cannot reference that interface. Edit: I have answered the question below. Jason As of EasyHook Commit 66751 (tied to EasyHook 2.7 alpha), it doesn't seem possible to get the instance of the remoting interface in both the client (that process

.Net Remoting versus WCF

风流意气都作罢 提交于 2019-12-03 03:47:01
问题 I am wondering that I can do same thing from both .net remoting and WCF, then why WCF is more preferred over .Net remoting. Where can I choose (or in which situation) .Net remoting or WCF? 回答1: .NET Remoting applications can use the HTTP, TCP, and SMTP protocols whereas WCF can use named pipes and MSMQ as well along with all these protocols. You may find the best answer here: From .NET Remoting to the Windows Communication Foundation Conclusion As you have seen, a migration from .NET Remoting

Does WCF really replace .NET Remoting?

对着背影说爱祢 提交于 2019-12-03 02:47:47
I can understand that WCF is in general better than Remoting, but the two seem quite different to me. MS make this pretty picture to show how great WCF is (or perhaps how poor the other techs are to only check one box each): (source: microsoft.com ) But, WCF is centered around SOA and I don't think it's correct to assume every networked application wants to expose services. In my case I'm looking at ways to replicate objects between two instances of a server application on different PCs. WCF appears to just give a modern version of COM... get an object and call methods and it magically calls

What is the difference between web service and remoting?

六眼飞鱼酱① 提交于 2019-12-02 22:45:43
I know web service and have some knowledge on remoting. Both concepts invoke methods on the client machine so where lies the difference ?? Through remoting we can also execute the method on the remote machine and the same functionality can be achieved through web service too.. Please excuse me if it is the obvious question.. Both support distributed applications. Web services are cross platform, using common standards and work through firewalls. They also think in terms of messages, not objects - you send a message to a service, and you get a reply. Remoting is an MS only technology which is

.Net Remoting versus WCF

别说谁变了你拦得住时间么 提交于 2019-12-02 17:13:00
I am wondering that I can do same thing from both .net remoting and WCF, then why WCF is more preferred over .Net remoting. Where can I choose (or in which situation) .Net remoting or WCF? .NET Remoting applications can use the HTTP, TCP, and SMTP protocols whereas WCF can use named pipes and MSMQ as well along with all these protocols. You may find the best answer here: From .NET Remoting to the Windows Communication Foundation Conclusion As you have seen, a migration from .NET Remoting to WCF is not a task you have to be afraid of. For most applications, a simple three-step process can bring

WCF vs. .Net Remoting

筅森魡賤 提交于 2019-12-02 15:35:22
according to this article , WCF with named pipes is the best choice for IPC, and it is around 25 % faster than .Net Remoting. I have the following code that compares WCF with named pipes with .Net Remoting: [ServiceContract] internal interface IRemote { [OperationContract] string Hello(string name); } [ServiceBehavior] internal class Remote : MarshalByRefObject, IRemote { public string Hello(string name) { return string.Format("Hello, {0}!", name); } } class Program { private const int Iterations = 5000; static void Main(string[] args) { TestWcf(Iterations); TestRemoting(Iterations); TestWcf

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

孤者浪人 提交于 2019-12-02 00:47:02
问题 I have a web site that is just serving as a Remoting Server and has remoting configuration inside its web.config file. <system.runtime.remoting> <application> <service> <activated type="abc.def.ghi"/> </service> <channels> <channel ref="http" machineName="localhost"/> </channels> </application> </system.runtime.remoting> Besides this web.config file, it has only these files in it: dataConfiguration.config enterpriseLibrary.config log.config website.publishproj bin folder - which has the DLLs

System.InvalidCastException when creating a client activated object using an older version of an interface defined in a strong named assembly

≯℡__Kan透↙ 提交于 2019-11-28 14:30:25
I have a query about .Net Remoting, versioning and creating client activated objects. Here is the scenario: There are 2 interfaces, residing in their own assembly “SharedTypes”: IServer and IAccount. IServer contains methods “GetStatus” which returns a string, and “CreateAccount” which returns an IAccount type. This is registered into the GAC as v1.0.0.0. Server application references SharedTypes and implements IServer and IAccount with concrete classes, Server and Account. These are MarshalByRefObject objects. The Server application marshals the Server class as a singleton object. Client

Can I remove empty catch with throw?

牧云@^-^@ 提交于 2019-11-28 10:43:39
I'm hoping this is straightforward. I work on a large code-base, the overall quality is good, but occasionally you get some of these: try { // Calls a .NET remoting method. } catch { throw; } Note there is no finally logic and the catch does not specify any exceptions or do anything other than what I've provided above. However, I know that catching and re-throwing can alter the call-stack in the exception details. What I'm not sure about is if this behaviour is here specifically because of a .NET remoting call. Is it safe to remove this try-catch? So far as I can see, it is, but I thought I'd

How do the ISponsor and ILease interfaces work?

五迷三道 提交于 2019-11-28 01:24:00
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 reference to be passed into my ISponsor object it never appears to be used from examples I've seen . ISponsor just seems to return a TimeSpan without actually using the ILease reference. But I'm sure there is more going on here since remoting is involved. How do ISponsor and ILease work, specifically in terms of object lifetime renewal? In parent AppDomain