.NET Remoting Interview Questions & Answers

Showing 10 of 42 questions | Page 2

Technical interview questions and answers are crucial when preparing for a .NET Remoting Interview because this topic tests your understanding of distributed applications, remote object communication, channels, proxies, and .NET framework concepts. Although .NET Remoting is an older technology, it still appears in interviews for companies working with legacy enterprise systems. Many companies like TCS, Infosys, Wipro, Cognizant, and Capgemini ask fundamental .NET Remoting questions to evaluate how well candidates understand underlying architecture and communication mechanisms. This guide provides commonly asked .NET Remoting interview questions with clear explanations to help freshers, beginners, and .NET developers strengthen their understanding. These questions will also help you perform confidently during technical rounds and project discussions.

Developers working with .NET architecture should strengthen their understanding of .NET framework  essentials and Windows Forms  development patterns 

Showing 10 of 42 questions

11. What is a formatter?

A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end.

12. Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?

Binary over TCP is the most effiecient, SOAP over HTTP is the most interoperable.

13. What is SingleCall activation mode used for?

If the server object is instantiated for responding to just one single request, the request should be made in SingleCall mode.

14. What is Singleton activation mode?

A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.

15. How do you define the lease of the object?

By implementing ILease interface when writing the class code.

16. Can you configure a .NET Remoting object via XML file?

Yes, via machine.config and application level .config file (or web.config in ASP.NET). Application-level XML settings take precedence over machine.config.

17. How can you automatically generate interface for the remotable object in .NET with Microsoft tools?

Use the Soapsuds tool.

18. Explain the role of the channel in .NET Remoting

.NET Remoting uses channels to transport messages between the client and the server. Channels can be based on protocols like TCP, HTTP, or IPC, and they manage the serialization and deserialization of messages during communication

19. Describe the process of object activation in .NET Remoting

Object activation in .NET Remoting refers to how remote objects are created. It includes server activation (well-known objects) and client activation. Server activation can be either Singleton or SingleCall, where Singleton serves all clients and SingleCall creates a new instance for each request

20. How does .NET Remoting handle object lifetime management

.NET Remoting manages object lifetime using leases and sponsors. Leases determine the time a remote object stays active after it has been created, and sponsors can renew the lease time, preventing the object from being garbage collected
Questions and Answers for Competitive Exams Various Entrance Test