473,508 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Serializing a class on a remote machine


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
Nov 16 '05 #1
2 1354
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bredal Jensen" <Br***********@mimosa.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...

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

Nov 16 '05 #2
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.
--
"Bredal Jensen" <Br***********@mimosa.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...

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

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3829
by: Martin Zeigler | last post by:
I have been using Weblogic 5.1 for a couple of years. I currently pass an object as a parameter to my ejbCreate method. The data in the object could be modified by my bean and the caller needs to...
1
2067
by: Ivo Bronsveld | last post by:
All, I have quite a challenging task ahead of me. I need to write an object model (for code access) based on a schema, which cannot be made into a dataset because of it's complexity. So I...
2
3501
by: Tobias Zimmergren | last post by:
Hi, just wondering what serializing really is, and howto use it? Thanks. Tobias __________________________________________________________________ Tobias ICQ#: 55986339 Current ICQ status: +...
4
4661
by: Rohith | last post by:
I need to import dlls that are present in the remote machine. Its a dll written in C that exposes methods. I want to import that dll in my C# application. But that dll is not present in the local...
7
2574
by: | last post by:
I'm writing an ASP.NET app, using Visual Studio 2003. VS is running locally on my laptop, but the web app is running on a remote server. My laptop is not in the domain. I do have a domain account....
12
4885
by: Cagdas Ozgenc | last post by:
Greetings, When directly serializing C++ structures to a file with the standard library functions giving the address of the data and length of structure using the sizeof operator, do I risk...
1
2118
by: Nathan Baker | last post by:
Hey, I have an XML file which I am serializing into a class using the following code: // XmlSerializer s = new XmlSerializer(typeof(edition)); StreamReader r = new...
0
1160
by: Joris van Lier | last post by:
Hi, I'm looking for advice on mapping between different XML Schamata. The C# (2.0) project I'm currently working on needs to send custom business entities to multiple webservices, each accepting...
3
6610
by: Yves Gagnon | last post by:
Hi, I try to debug a WCF hosted in a windows services on a serveur that is on an other domaine then my developpement machine. I tried many things without succes. Here is what I tried: First I...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7132
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.