Serializing a class on a remote machine

  • Thread starter Thread starter Bredal Jensen
  • Start date Start date
B

Bredal Jensen

Hello,
Iwas wondering if it is possible to serialize a class into xml on a remote
machine .
If yes, then how can this be done? we will assume we have the right to write
a file to
the remote folder.


Many thanks in advance
JB
 
Bredal,

There is no reason why you wouldn't be able to serialize a class on a
remote machine. What you really want to know is if you have the rights to
write a file remotely. Remoting, in general, doesn't convey identity
(unless you do something special to enable it, which .NET 2.0 supports now).
Rather, the remoting process dictates the identity that the remoted code
runs under. You would have to make sure that the user that process is
running under has the appropriate rights.

Hope this helps.
 
not built in. You can certainly write a class that would provide a method
where the caller could request that the class serialize itself to a local
file, and then call that class from a remote machine. From the standpoint
of the remote caller, you are calling a remote object and asking it to
serialize... I don't know if this is what you are looking for.

If the class exists and you cannot change it, you can create a remotable
object that you install on the remote machine that does the work, and you
can call that object using .net remoting.

HTH,

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
 
Back
Top