remoting

Custom Formatter for .NET Remoting

I would like to use a custom formatter for .NET remoting. In order to accomplish this, my understanding is that I have to implement something akin to the BinaryClientFormatterSink class (used for BinaryFormatter), but for my custom formatter. For example, if my formatter was FastBinaryFormatter, I would likely implement FastBinaryClientF...

Where is Transparent Proxy pointing to?

I am using .Net Remoting. I have a service exposing a singleton class that a client on another machine can register with, so that the server can broadcast messsages to all registered clients. MessageManager mgr = MessageManager.Instance; //Static Singleton Factory Proprty RemotingServices.Marshal(mgr, MesgURI); Now in my service,...

Security Sandbox Issues with Flex/AS3 and AppEngine

I'm having trouble with an AS3 AMF RemoteObject request that is hosted on App Engine. I have a crossdomain.xml file in the root of the domain, and also one at the remoting endpoint. Here are the contents of the root crossdomain.xml: <?xml version="1.0"?> <cross-domain-policy> <site-control permitted-cross-domain-policies ="all"/> ...

Flash Remoting and Java

I want to use Flash Remoting in my Flash app that is backed by a Java server. I'm interested in what my options are for using Flash Remoting with Java. I know about BlazeDS but it seems to be fully geared towards Flex, not Flash (AS3). I'd like to make simple AMF calls, as like in the old days. If I can I use BlazeDS for this and if yes...

Actionscript class not found at runtime for BlazeDS communication

We are using GraniteDS autogenerated AS code to map Java remote objects to AS. We have objects that contain List sites in Java so when they are converted to AS it looks like: JAVA: private List<MyObject> territories; Actionscript: private var _territories:ListCollectionView; The trouble is we are using MXML databinding to...

How to return a byte[] doing chunking using remoting over http in C#?

In .Net remoting over http, we return a byte[] back to the client by doing a SerilizationInfo.AddValue(SerializationInfoValueName, ((MemoryStream)writer.BaseStream).GetBuffer(), typeof(byte[])) call. However, sometimes the byte[] size gets too big and causes an OutOfMemory exception. The only remedy seems to be utilize some form of chu...

How to programmatically check that IIS hosted remoting is running?

A remoting application is hosted on server using IIS. I need code to check that the hosted application is running or not. Is any way? Please suggest. ...

Fetching remote objects add "_$$_javassist_x" to type

Hi, we have a client/server app (Flex and Java) that uses BlazeDS to do remoting. This allows us to exchange and map types between client and server. For some reason a User type we are retrieving from the server is not sent as "User", but as "User_$$_javassist_x", where x is an integer. The other types we are sending over all work fine...

Detect a transparent proxy vs actual object reference?

Given an object reference, is it possible to programmatically determine if the object was created in the current appdomain or instead is a proxy to an object in another appdomain? ...

How do I use .Net Remoting through a web proxy?

Hi guys, An application I'm writing needs to use .Net Remoting (I'm aware that WCF is the 'new thing', but it is unfortunately not an option available to us at this time). Anyway, everything works fine if I don't try to use the application through a proxy. However, the application needs to be able to function through proxy web servers....

Passing IEnumerable across appdomain boundaries

Is it generally a bad idea to pass an IEnumerable across appdomain boundaries? I ask because with my current understanding of IEnumerable implementations, the enumerator isn't going to be used until the collection is, well, enumerated. When you are crossing appdomain boundaries, particularly involving multiple processes, would this not...

Remote monitoring design

I need to monitor several systems going thru stress testing. I want to make a client-server .NET(C#) application that will ping the systems to check temperature, memory usage etc. The client will provide system info (cpu-mem-hdd configuration) at start then it will undergo through several benchmark/stress tests. The server will keep tr...

Unable to call the server side event In the Flex Remoting

When my application connecting with the netconnection and with shared object application connecting fine but while connecting shared object they are not firing the server event like application.onAppStart = function() {} , application.onConnect = function(newClient, userName){} follwing are my code /// main.as Client.prototype.getServe...

Remoting: Finding client AppDomain / Assembly from server AppDomain

Hello, I have an application with a server "AppDomain", which accepts calls from separate AppDomains (which host plugins, developed by other people and not trustworthy). From the server AppDomain, I need to know which "Plugin" (AppDomain) is actually making the call, so that I can ensure that this plugin has access to the resource. I ...

TcpChannel registration problem...

I've read here: Error 10048 when trying to open TcpChannel I am having what I thought to be a similar problem - apparently not. I took the advice of the first respondant to reset winsock (how does the winsock get corrupted, anyhow?) Anyway, here is my channel registration: channel = new TcpChannel(channelPort); ChannelServices.Regist...

Remoting in .net

hi all I am doing applications on .net remoting ,i write the code for Client -----------> server but client <------------ server i don't know how to do it(just like a chat),Please give suggestions and some samples to look up. without any request from server i send messages from my client application ...

AIR application talking to Java

I have situation when I need to communicate with Java process somehow. Java handling all DB works AIR just UI. It would be very nice to have AFM protocol implementation over sockets. Ideally approach with RemoteObject already existing in framework but working over other medium that HTTP wiuld be the best! Does anybody knows if such thing...

.NET Remoting thread locking mechanism

Hello all, I'm having a pressing issue and I'm hoping you all can help me out. I will try my best to explain it as well as I can. I am augmenting a system that uses .NET remoting to allow for database calls from a thin client to a server that executes said calls. The server itself has the data access components installed on it, so it...

Get Client IP address:port (System.Runtime.Remoting.Channels)

I am trying to get a Client IP address & port for an internal collection. I found this answer. However, this seems like a lot more than what I need to simply grab the client's IP address & port. Are there any other ways to do this? ...

Creative use of MarshalByRefObject

I've been banging my head trying to figure some things out. So, I'm looking for advice and research material (via links). Here's the scenario: We have a library (say, CommonLib) that contains resources needed by several other applications (say, AppA, AppB, AppC, and so on...). Now, the way this is currently working is AppA instances, ch...