Top 50+ .Net Interview Questions and Answers - 2

Question: 6

When will you use .NET Remoting and when will you use ASP.NET Web Services?

Remoting is used when want to control both ends of an application that is involved in the communication process.

Web Services are used when you are either a client or a server and another end is being controlled by someone else.

Question: 7

Are client –activated objects stateful in nature?

Yes. In the CAO remoting model, a client creates an instance on the server. The instance serves only the client that creates it and does not get discarded with each request. This enables the CAO to maintain state for each client it is serving; however, the instance cannot share a common state.

Question: 8

Do any security measures exist for .NET Remoting in the System.Runtime.Remoting namespace?

No, security should be taken care of at the application level. Cryptography and other security techniques are applicable at the application or server level.

Question: 9

Is it possible to configure a .NET Remoting object by using an XML file?

Yes, it is possible. You can do so with the help of the machine.config and web.config in ASP.NET.

Related Questions