Recent update: 2008-3-21
965 byte By
GBez at 2008-3-7
Hi, I have thee following code that uses a delegate to make an asynchronous call. What I would like is a way of killing this call if need be. That is, the user could click on an abort button while the call is in progress, I want to then end that process immediately. Please can anyone help? ...
Hi there,This article: http://blogs.msdn.com/manishg/archive/2005/04/22/410879.aspx#436192helped me a lot when trying to impersonate my user to my remote object. But... when I try to access my remoted server object from a web application, the wrong principal is passed. I've got a web forms ...
Hi there,I'm working with the July CTP of VS.NET and found this article: http://msdn2.microsoft.com/library/59hafwyt(en-us,vs.80).aspxSomebody out there who tried authentication with the tcp channel?I have a website that talks over a tcp channel to a marshal-by-ref bussiness layer object that ...
i would like to know if there is an option to connect between C# and C++ objects using the remoting technology. is there any infrastracture in the C++ side for this?i am using visual studio 2005 beta2.what are the other options?i thought about:1. wrap the C++ code with C# only for the ...
Hi , I have an object ObjXML of type XmlDocument (object may be of any non serializable class). I have to Serialize it into Binary. I know that XmlDocument does not implement ISerializeable. That's why according to framework we cannot serialize it. So is there anyway around to get this ...
I want to use IIS to host some .NET remoting.I have a class library with one class in it which inherits marshalbyrefobject.I created a web config file as follows: <system.runtime.remoting> <application> <service> <wellknown mode="Singleton" type="RemotingServer.TestClass, ...
2363 byte By
Bijan at 2008-2-27
I have a .NET Remoting server application (TCP, binary) and it works fine when it loads the defined types from the private assembly, but when I put that assembly in the GAC then I get FileNotFoundException. In the MSDN doc it says: " <activated type="type,assembly" />Specifies the full ...
459 byte By
ppl1 at 2008-2-26
i need to connect to N servers and give them tasks, and after X seconds im checking each one of them if they finished.so i tried to save the ref to the remote object in a hashTable (as the key), but when im trying to remove an item in the hashTable(after he finished his job) im getting a ...
Please help!This is probably the weirdest issue I've ever encountered. I'm trying, in C#, to binary serialize an array of strings that come from a SQL Server 2000 database. Problem is, this takes orders of magnitude longer than if the strings don't come from the database. The EXACT same ...
$exception {Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.}[System.InvalidCastException]: {Function evaluation disabled because a previous function evaluation timed out. You must continue execution to ...
Hi guys,I have little experience with distributed app. and now am trying to build an app. using .net remtoing. But I am stuck on using whether marshal-by-value or marshal-by-reference.I understand their differences and I think marshal-by-value object is much more efficient as it saves a lot ...
307 byte By
DaleN at 2008-2-22
I'm new to VS 2005 Beta 2 and am trying to upgrade a VS 2003 code that serialized data with the SOAP formatter. The System.Runtime.Serialization.Formatters.Soap.dll needs to be "referenced" in VS 2005, but where is it? and how is it "referenced"? The BINARY formatter is still in the System, ...
Hello I am running a .net remoting application and want to secure the tcp traffic between server and clients. Users connecting to the server should be authenticated and the traffic between server and clients should be encrypted. To make my problem a little bit more understandable I will post my ...
Please excuse the attention grabbing headline, but I think it's important to get this message across to as many people as I can. I spent most of the past two days ripping a remoting application to pieces, re-writing it in VS 2003 + .Net v1.1 simply because of the Quick Console. I hope that ...
I'm hosting an SAO in IIS, that exposes a HTTP channel our public web server service uses. The SAO is a well-known SingleCall because its hosted in a NLB cluster (following Microsoft guidelines).When the client invokes the SAO, it is disposed of subsequently (through IDisposable). If I reset ...
I have a client that invokes an single call SAO hosted on a NLB cluster. The SAO hosts a finite resource, under certain conditions it will need to delegate to another server (in a way acting like a client). If I take down a server, the client is directed to a 'good' SAO, but delegation won't ...
Hey everybody!I just started getting into .NET Remoting about a week ago, and have began to really understand the power behind it and am currently working on exposing a data-accessing component I have created as a remote object. I have about 6 objects that all do similar data-accessing ...
2335 byte By
Adiraz at 2008-2-19
Ive been trying for 3 hours to try and serialize an array. First as an Arraylist, then converting the arraylist to a normal array then serializing. Actually the serializing seems to look OK, all the data is in the file as it should be *i think*, but the deserializing is causing problems. ...
222 byte By
ppl1 at 2008-2-18
how can i run 2 servers localy in .net remoting? i tried register two different ports in the server side but i got an exception. do i need to create 2 different projects , each one for a server? thanks in advanced
One of the reoccurring problems I see in deserialization is the need to know that all objects are completely deserialized in order to perform dependency fixups. This often happens when reconstructing a readonly collection during deserialization. For example, the Control.Controls collection. ...
[VS.NET 2005 Beta 2] Hi, I was wondering if anyone knows of any tools that can help determine why (binary) serialized files are bigger than expected? Maybe something that graphs the serialized objects in the file? If not, does anyone have any tips for finding out? I'm sure I can work it out ...
970 byte By
Judah at 2008-2-15
When my .NET remoting client app is disconnected from my server app, how can I reconnect? Here's some example code:ThreadStart serverMethodToCall = serverObj.SomeMethod;try{ serverMethodToCall();}catch(SocketException ex) // you've been disconnected from the network.{ // Pretend I connect to ...
891 byte By
Bijan at 2008-2-15
I have a .NET Remoting server application (TCP, binary) and it works fine when it loads the defined types from the private assembly, but when I put that assembly in the GAC then I get FileNotFoundException. In the MSDN doc it says: " <activated type="type,assembly" />Specifies the full ...
Hi, I have implemented a remoting server application that host a remote object that is refernced by multiple client applications.(SAO, singleton). Windows applications. Thus, it is straightforward that client applications use the proxy object hosted by the server to invoke methods directly. ...
965 byte By
Judah at 2008-2-15
I wrote a custom bi-directional TCP channel to do my remoting. Using this channel, the client can receive messages back from the server once the client connects to the server. My problem is that over a WAN/Internet environment, my custom channel is consistently getting disconnected after a ...
Hi AllI have a strange exception which I need help with:I am using remoting between 2 services which do not use any StronlyTyped dll's (see the exception description)When running the services everything runs ok in most cases. In very rare cases (which we can not identify when...) I get the ...
550 byte By
ppl1 at 2008-2-14
the client (which is a server too) check if the server has a task for himif there is avaliable task then the client operate a function in the server that return a class named (TaskClass).on the client side i wrote a class that contain 2 variables - one is clientID and the other one is instance ...
When passing a large byte array as a parameter to a remote method, I get the following error:System.Runtime.Serialization.SerializationException: The input stream is not a valid binary format. The starting contents (in bytes) are: 53-79-73-74-65-6D-2E-57-65-62-2E-48-74-74-70-45-78 ... Server ...
264 byte By
Lorren at 2008-2-13
I have a base class which is serializable. When I distribute this class I need to ensure that any derived classes will have to implement serializable or throw an error. After looking through the documentation I added the [Serializable] attribute, will this do it?
1526 byte By
Timo81 at 2008-2-13
dearsi have a problem here i have a windows app which synchronize with a web siteand get news from the site and save it on the client's pc as xml and also save the user setting as xml the problem here that the xml is readable i don't want the client to be able to read those file so i decided ...
405 byte By
Jero at 2008-2-12
I am using a CAO schema in a remoting scenario. I need to know when a client has close the app. It's a chat, and I need to know when clients close, so I report the session termination to the other clients. Any idea? Do u know about another schema wich could work better than CAO? I dont like ...
The current .Net 1.1 implementation of RealProxy is restricted to types that inherits MarshalByRefObject objects. I would like to know is there such a restriction on RealProxy? The Java equivalent Proxy class does not seem to have such limitation. Are there some drawbacks in enabling the ...
I have created three windows services in which two services listening two different logical ports continously and one service capture COM ports. These windows services informs the Main Window Application which is also running in different Application Domain or Window Process space. These ...
There are several project that have proposed mecanism for the transmission/storage of computation (i.e. thread serialization) is Java. Is there any equivalent in .Net ? (any equivalent expected with .Net 2.0 ?). Thanks in advance, Joannès Vermorel
Hi, I am working on a n-tier app using remoting. I am using the VS 2005 beta2. My server needs to access a remote resources on behalf on the connected user. I have configured my server like : <channel ref="tcp" secure="true" port="8081" impersonate="true"> and my client: <channel ...
667 byte By
papadi at 2008-2-8
Hi!I think this is a simple question for those that have been working with remoting for some time. And somehow, I believe the answer will be simply 'NO' .Is it possible to have a class that is marshal by reference and also inherits another class, other than MarshalByRefObject?I guess that if ...
I'm receiving the exception "Object with ID # was referenced in a fixup but does not exist" from ObjectManager.DoFixups() (actually the function that throws the exception is ObjectManager.GetCompletionInfo()). This is occuring in Beta 2 and did not occur in Beta 1. I can see that the object ...
Hello gurus, I need to serialize a form and all controls that the user placed into. The problem is that the ControlCollection object is marked as not serialized. how i can solve this issue?. Regards
The new BinaryFormatter in Beta 2 cannot read data written with the BinaryFormatter from Beta 1 . Will the binary serialization format changed again for the final version of .net 2.0 ?
Hai,I've developed a simple application including a server, a client and two remote objects. This application is built on tcp. I need a monitoring application for this .NET remoting server. This application will display the status of different server remoting objects.How to implement this ...
I am trying to implement a custom formatter for my own needs. The implementation is fairly advanced (see PartialFormatter.cs), but I ended up encountering an another problem with the .Net framework: it seems that the Hastables are breaking the serialization framework (have a look at the ...
I have a service that hosts a control that I want to expose through .NET Remoting (derived from MarshalByRefObj). A single control is instantiated and starts interfacing to a device when the service starts. The control must only be accessed by a single client at a time because only one person ...
2535 byte By
Bijan at 2008-2-5
I created two samples for comparing the performance of Indigo vs. .Net Remoting (using TCP & binary serialization) the sample code is very simple and it is based on one of the sample code comes with Indigo. It adds two arrays (type of double) and returns the result.Here is the result:Indigo ...
I have a multi-process application that passes significant amounts of data between processes using serialization via a binary formatter. Examining the memory usage via profiling tools such as the CLR Profiler, it apears that the ObjectManager.RegisterFixup() method is calling ...
I got exception "Cannot create channel sink to connect to URL tcp:\\serverB:9000\RemotingBOFactory. An appropriate has probably not been registered" when trying to get remote object factory that has been registered as a well known service on serverB from serverA. This is occured when a client ...
When serializing a delegate, the delegate writes out a RuntimeMethodInfo for the Delegate.Method member. Unfortunately, even though RuntimeMethodInfo is serlialized, it cannot be deserialized because it is missing the deserialization constructor .Obviously, the runtime formatters are ...
72 byte By
ppl1 at 2008-2-4
when im using tcp/ip how can i know which port to use? thanks
hi all,after spending some great deal of time on the internet searching...i surrender.i am an ASP.NET developer who has moved recently to work on WinForms application.i have to create this application which is composed of client/server sides. client and server share some datatables between. ...
Hello all, I am currently developing a client/server application and I need to launch my server.exe file on a remote server. I am able to connect to the remote machine (because I have user name and password) and launch a process. However, the .exe and.dll file must FIRST reside on that server. ...
Hi, I'm using remoting in .NetI'm getting the following exception message during deserialization..."Because of security restrictions, the type XXX cannot be accessed..."Here is the Stack Trace:Server stack trace: at ...