Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write a example for remoting (code)

Answers were Sorted based on User's Feedback



write a example for remoting (code)..

Answer / arunkumar thimma

public class CommonClass : MarshalByRefObject
{

public string FirstName;

public string LastName;

public string GetWelcomeString()
{
Console.WriteLine("Welcome " + FirstName + " " + LastName);
return "Welcome " + FirstName + " " + LastName;
}

}

Is This Answer Correct ?    1 Yes 0 No

write a example for remoting (code)..

Answer / arunkumar thimma

static void Main(string[] args)
{
TcpChannel tcpChannel = new TcpChannel(8084);
ChannelServices.RegisterChannel(tcpChannel);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ClassLibrary1.CommonClass),
"testRemoting", WellKnownObjectMode.Singleton);
Console.WriteLine("Server is ready");
Console.ReadLine();
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net Remoting Interview Questions

What is the difference between .Net Remoting and Web Services ?

1 Answers  


Will clr handle unmanaged code or not?

0 Answers  


Explain the difference between the registerwellknownservicetype(), registerwellknownclienttype(), registeractivatedservicetype() and registeractivatedclienttype() in .net?

0 Answers  


What is assembly ?

4 Answers   DELL, TCS,


What are static assemblies and dynamic assemlies. Differences between them ?

2 Answers   TCS,


How do you directly call a native function exported from a DLL?

2 Answers  


What technology enables out-of-proc communication in .NET ?

1 Answers  


Where are shared assemblies stored?

4 Answers  


How can you tell the application to look for assemblies at the locations other than its own install?

1 Answers  


what is sitemap

3 Answers  


About Iunknown interface Queue ,its methods Query Interface Addref,Release and Explain each ?

0 Answers   DELL,


What is the difference between private and shared assembly?

1 Answers  


Categories