Library tutorials & articles
A Simple Introduction to .NET Remoting
- Introduction
- Host Application
- Client Application
Introduction
.NET remoting allows the development of distriubuted applications. It allows applications to use objects contained in other processes. These processes can reside on the same local computer or any remote computer that is reachable via a network (including the Internet).
We wil quickly look at the basics on how to set up a simple .NET remoting system. The system will comprise of:
- A remotable object (Abstract class and implementation)
- A Host console application which will sit and listen for object requests
- A Client console applicaiton that will make requests for the remotable object
Remotable Type
To enable our object to be remotable and hense accessible from other application domains, we have to inherit from System.MarshalByRefObject. Create a new class library project called RemotableType (the assembly should be called RemotableType.dll). Now, add the class belown to the project.
using System;
public class RemotableType : MarshalByRefObject{
public string RemotableMethod()
{
return "Hello Word";
}
}Related articles
Related discussion
-
Are Native code making a comeback ? I think it never went away
by JoeGecko (0 replies)
-
Socket Programming in C# - Part 1
by graumanoz (23 replies)
-
Creating a Windows Service in VB.NET
by Templario55 (107 replies)
-
C# Windows Application Problem in Dynamically generated control
by BAmoozad (1 replies)
-
The Future of .NET Languages
by hack2root (2 replies)
Related podcasts
-
More jQuery in ASP.NET
In this episode Chris Brandsma, Rick Strahl, Dave Ward, Bertrand Le Roy, and Scott Koon conclude their discussion of Microsoft's jQuery in ASP.NET announcement1.This episode of the Alt.NET Podcast is brought to you by LLBLGen Pro, the most mature O/R mapper and code generator out there.Are ...
Events coming up
-
Nov
18
15 Minutes of Fame
Dresher, United States
This is a yearly tradition. We select 10 of the favorite speakers from monthly meetings, code camps, and hands on labs. Each one does a 15 minute talk on their favorite .NET technology. This is our 10th anniversary so we plan a gala event with special prizes and refreshments.
hi,
i have an xml file
<?xml version="1.0" ?>
<users>
<User id="u1">
<UserName>user1</UserName>
<Password>pwd1</Password>
</User>
<User id="u2">
<UserName>user2</UserName>
<Password>pwd2</Password>
</User>
</users>
i want to read this file in c#.net and compare the username with username entered in textfield while logging.
can you help me?
hi,
i have an xml file
<?xml version="1.0" ?>
<users>
<User id="u1">
<UserName>user1</UserName>
<Password>pwd1</Password>
</User>
<User id="u2">
<UserName>user2</UserName>
<Password>pwd2</Password>
</User>
</users>
i want to read this file in c#.net and compare the username with username entered in textfield while logging.
can you help me?
hi,
i have an xml file
<?xml version="1.0" ?>
<users>
<User id="u1">
<UserName>user1</UserName>
<Password>pwd1</Password>
</User>
<User id="u2">
<UserName>user2</UserName>
<Password>pwd2</Password>
</User>
</users>
i want to read this file in c#.net and compare the username with username entered in textfield while logging.
can you help me?
This thread is for discussions of A Simple Introduction to .NET Remoting.