remoting

Difference between WebService and Remoting

爱⌒轻易说出口 提交于 2019-12-24 00:23:11
问题 I was comparing Web service with Remoting from performance and interoperatibility point of views and have some doubts regarding it. 1) As Remoting support both TCP and HTTP channel, so is it when use TCP channel It uses binary formatting and when HTTP, SOAP formatting 2) Can we use binary formating with HTTP protocol and XML/Soap formatting using TCP Protocol in Remoting 3) As Remoting supports XML/SOAP formatting which is universally accepted for any technology and platform so it should

.NET Remoting callback

青春壹個敷衍的年華 提交于 2019-12-23 14:35:15
问题 Is it possible to transmit a callback via remoting? I'd like to do something along the lines of myRemoteObject.PerformStuff( x => Console.WriteLine(x) ); If not, how would I implement a equivalent functionality? Edit: I'm aware Remoting got superseded by WCF, but I'm still interested in this specific case. (Out of curiosity though, how's the issue in WCF?) 回答1: Remoting provides support for events. The client code can simply subscribe to an event that's exposed by the server class. (There are

.NET Remoting callback

天大地大妈咪最大 提交于 2019-12-23 14:35:09
问题 Is it possible to transmit a callback via remoting? I'd like to do something along the lines of myRemoteObject.PerformStuff( x => Console.WriteLine(x) ); If not, how would I implement a equivalent functionality? Edit: I'm aware Remoting got superseded by WCF, but I'm still interested in this specific case. (Out of curiosity though, how's the issue in WCF?) 回答1: Remoting provides support for events. The client code can simply subscribe to an event that's exposed by the server class. (There are

remoting - information about the client. c#

≡放荡痞女 提交于 2019-12-23 12:25:24
问题 Is it possible to find out / get some information about the connecting client when using remoting on .net 2.0? I like to know get some information about the connecting client on the server side, so I can act accordingly? This is a small and very local application that Never will have more then max 10 simultaneously connecting/requesting clients. pass client reference in each function? (or some identifier)? I could do it this way, but I would prefer to just get the information from the request

How do I measure bytes in/out of an IP port used for .NET remoting?

时光毁灭记忆、已成空白 提交于 2019-12-23 09:31:44
问题 I am using .NET remoting to retrieve periodic status updates from a Windows service into a 'controller' application which is used to display some live stats about what the service is doing. The resulting network traffic is huge - many times the size of the data for the updates - so clearly I have implemented the remoting code incorrectly in a very inefficient way. As a first step towards fixing it, I need to monitor the traffic on the IP port the service is using to talk to the controller, so

Unable to cast transparent proxy to type from AppDomain

不打扰是莪最后的温柔 提交于 2019-12-23 07:39:25
问题 I'm trying to create an object in an appdomain: var type = typeof (CompiledTemplate); var obj = (CompiledTemplate) domain.CreateInstanceAndUnwrap ( type.Assembly.FullName, type.FullName); However, I always get the following error: Unable to cast transparent proxy to type 'Mono.TextTemplating.CompiledTemplate'. I'm running on .NET 4.0, not Mono, despite what the namespace might suggest :) As far as I know, this error happens when .NET thinks that the Type & Assembly do not exactly match in the

Get the AppDomain of object

强颜欢笑 提交于 2019-12-23 07:29:14
问题 Is there any way to determine in which AppDomain was an object or ObjectHandle instance created? 回答1: If your object "travelled" using (e.g.) serialization from another AppDomain to the current AppDomain then it has essentially been "created" in your current AppDomain. The source AppDomain could be a separate process on the current computer or another process on a remote computer. As far as I am aware, I don't think that the CLR keeps track of that for you, since you are responsible for

.NET Remoting, passing objects into methods

此生再无相见时 提交于 2019-12-22 04:15:33
问题 I am writing a .NET Remoting application. I have my dll, server, and client all working correctly. However, when I try to change my method call to take an object parameter instead of a simple type like an int, it complains with this error. Type System.Runtime.Remoting.ObjRef and the types from it (such as System.Runtime.Remoting.ObjRef) are not permitted to be deserialized at this security level. The method is something like this. public List<Orders> GetOrders(int UserID) { //Works public

Assembly.ReflectionOnlyLoadFrom not working

最后都变了- 提交于 2019-12-22 04:08:25
问题 I have an Assembly Library1.dll which contains some Interfaces, which were serialized as a byte array into the database. For some reasons we have to change the Interface properties and defintion. so now i am writing a migration utility. So i have 2 versions of Library1.dll , In my utility i have created a folder where i store the new version of Library1.dll . This utility in turn also references Library1.dll hence in bin folder contains Library1.dll but this dll is compiled on older version.

Maven WAR dependency - cannot resolve package?

梦想的初衷 提交于 2019-12-22 01:41:28
问题 I have a war dependency: <dependency> <groupId>my.package</groupId> <artifactId>myservices</artifactId> <version>0.3</version> <type>war</type> </dependency> Now, this exists in my local repository, and the class exists at WEB-INF/classes/my/package/myservices . When I go to use myservices , however, I get package my.package does not exist. Intelli-J knows to change myservices into my.package.myservices , but trying to import seems to not work at all. Is there something special I need to do