.NET Remoting and Runtime Serialization,46 - .NET Development,
Recent update: 2008-3-21

Killing Asynchronous Calls

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? ...

The wrong Principal is passed to my remoted object

917 byte By BartCoppens at 2008-3-6
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 ...

Authentication with the TCP Channel

967 byte By BartCoppens at 2008-3-5
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 ...

remoting in C++

385 byte By Kfironit at 2008-3-3
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 ...

How to Serialize a non Sertilizable object into Binary?

1564 byte By MuhammadWaqasBashir at 2008-3-1
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 ...

Cannot get remoting to work in IIS host

1692 byte By MarkShehan at 2008-2-28
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, ...

CAO and GAC Issue

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 ...

saving ref of remote object

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 ...

VERY slow binary serialization of strings coming from SQL

1661 byte By dksimon at 2008-2-25
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 ...

DelegateSerializationHolder(): InvalidCastException

3248 byte By RayManning at 2008-2-24
$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 ...

Remoting + Lazy Load

766 byte By MichaelChan at 2008-2-23
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 ...

Location of the SOAP dll

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, ...

Secure TCP with .net 2.0

1461 byte By StefanFenz at 2008-2-22
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 ...

Quick Console is Evil!

2494 byte By Steve_W at 2008-2-21
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 ...

Controlling object lifetime

944 byte By ChrisWard at 2008-2-20
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 ...

Dealing with an offline SAO

861 byte By ChrisWard at 2008-2-20
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 ...

Exposing a class to remoting

1221 byte By autonomousDE at 2008-2-20
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 ...

Serializing an Array

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. ...

run servers localy

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

Indigo: EndDeserialization event?

940 byte By RayManning at 2008-2-17
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. ...

Tips and tools for finding out why serialized files are so big

471 byte By GraemeFoster at 2008-2-16
[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 ...

Handling disconnections

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 ...

CAO and GAC Issue

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 ...

Remoting Server and multiple clients

1090 byte By I_luv_peanuts at 2008-2-15
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. ...

Remoting - disconnection over WAN

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 ...

System.Security.Permissions.StrongNameIdentityPermission

3099 byte By Spock101 at 2008-2-15
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 ...

advise with .net remoting

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 ...

Error passing a large variable as a parameter to a remote method

1133 byte By dsmithwv at 2008-2-14
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 ...

Is there a way to force derived classes to implement serializable?

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?

security issue

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 ...

How to know when a CAO client has close?

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 ...

RealProxy restricted on MarshalByRefObject

934 byte By JoannesVermorel at 2008-2-11
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 ...

Please help me ... Windows Services or Remoting

776 byte By ZeeshanGulzar at 2008-2-10
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 ...

Thread Serialization

263 byte By JoannesVermorel at 2008-2-10
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

Remoting Impersonation/Delegation problem

1041 byte By MartinPar at 2008-2-8
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 ...

Inherit a class by a class that should be marchal be reference

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 ...

ObjectManager.DoFixups() - exception

847 byte By RayManning at 2008-2-7
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 ...

HOWTO serialize a form and all its controls

215 byte By CFQüeb at 2008-2-7
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

BinaryFormatter compatibility between .Net 2.0 Beta 1 and Beta 2

192 byte By LarsMiddendorf at 2008-2-7
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 ?

.NET remoting Server monitoring

871 byte By JefyDominic at 2008-2-7
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 ...

Hashtable breaking serialization framework

1168 byte By JoannesVermorel at 2008-2-6
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 ...

Remoting client mutual exclusion

680 byte By CharlesR at 2008-2-6
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 ...

Indigo vs. ".Net Remoting" Performance

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 ...

ObjectManager Memory Growth

1547 byte By TimBain at 2008-2-5
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 ...

Cannot create channel sink

855 byte By Mulyanto at 2008-2-4
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 ...

Serializing delegates: MethodInfo

465 byte By RayManning at 2008-2-4
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 ...

choose a port

72 byte By ppl1 at 2008-2-4
when im using tcp/ip how can i know which port to use? thanks

remoting?..networking? am lost

658 byte By splashup at 2008-2-4
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. ...

Copy files to remote server

888 byte By EveRallo at 2008-2-3
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. ...

Help required on remoting

2408 byte By livehed at 2008-2-3
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 ...

.NET Development

Site Classified