470,831 Members | 1,398 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,831 developers. It's quick & easy.

Create a class at runtime and execute it..


Im developing an client server application in C#.

In that i have to use Mobile Agent technology.

On the Server side there is a class...which i want send to the client...by System.IO class..let the class be Mobile...and it has a methode mobilecode()

public class Mobile()
public void mobilecode()
Code for gathering data from client.


On the Client side i read this file by stream reader...and i save this class in the same directory of the client.cs project..

on main function of client.cs
i call the class by...


but while compiling..it gives the error...

Mobile doesnt exist...

even if i make an empty class Mobile...thinking it could b overwritten by the code sent from server...dat does not happen...on runtime it reads the same old file...and not the does not updates till the code is executed.

So can anyone help me ou here...as to how to send a class file 4m server to client at runtime and access it immediately at runtime...!!

any help wud b appreciated...

Thnx in advance,,,,!!
Mar 6 '08 #1
0 881

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.