YouTube Icon

Interview Questions.

Top 20 Dot Net Remoting Interview Questions - Jul 25, 2022

fluid

Top 20 Dot Net Remoting Interview Questions

Q1. 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 maximum interoperable.

Q2. Can You Configure A .Net Remoting Object Via Xml File?

Yes, thru device.Config and application level .Config document (or web.Config in ASP.NET). Application-stage XML settings take precedence over machine.Config.

Q3. When Would You Use .Internet Remoting And When Web Services?

Use remoting for greater green exchange of data while you manipulate each ends of the application. Use Web offerings for open-protocol-based totally statistics alternate when you are just a patron or a server with the alternative cease belonging to a person else.

Q4. Advantage Of Remoting Over Web Services?

.NET Remoting is a dispensed objects infrastructure. It lets in strategies to share items—to call techniques on and access properties of gadgets which might be hosted in extraordinary utility domains in the equal system, unique strategies executing on the same pc, on computer systems on an intranet, or on computer systems allotted over extensive areas. .NET Remoting supports many exceptional communications protocols, such as the SOAP/HTTP protocol utilized by ASP.NET Web services. Support for different protocols makes it feasible to provide a good deal quicker communications in .NET Remoting than might be viable with ASP.NET Web offerings.

The ASP.NET programming model is tied especially to IIS, and is restrained to creating Web offerings that use the producer/client model. .NET Remoting, then again, can share objects from any type of utility.The .NET Remoting system, as an imperative part of the .NET Framework, supports full .NET kind gadget constancy. You can bypass any object across the wire to a customer. This is in comparison to ASP.NET, which is restrained to facts kinds that can be expressed with WSDL and XSD.

Q5. What Are The Proxies?

In the general feel, a proxy is any object that stands in for some other, either servicing requests without delay or passing the requests on to the item for which it's miles status in. In .NET Remoting, the proxy manages the marshaling process and the other tasks required to make go-boundary calls. The .NET Remoting infrastructure mechanically handles creation and control of proxies, even though it is viable to create your personal proxy instructions to plug in to and personalize proxy advent, marshaling, and different proxy-associated duties.

Q6. What Is Abstract?

.NET Remoting presents a powerful and excessive performance way of running with far off gadgets. Architecturally, .NET Remote objects are a really perfect in shape for getting access to sources throughout the network without the overhead posed with the aid of SOAP based totally WebServices. .NET Remoting is less difficult to apply than Java’s RMI, but definately extra difficult than developing a WebService.

Q7. What Is Serialization Formatters In .Net Remoting ?

When any item is to be despatched throughout the trport channel, it ought to be serialized and packed into a information layout that can be trmitted with the cord. On the opposite give up of the cord, this serialized facts is examine and deserialized back to the real object. This Serialization is performed by using message-serialization formatters which convert the sphere or item’s kingdom right into a layout this is helpful for storage or trmission. Dot Net framework provides us two message-serialization formatters one among them is a binary serialization formatter which converts an item’s country right into a binary move and other is SOAP serialization formatter which converts it into an XML string representation that’s human readable. The binary serialization formatter a lot barely faster.

Q8. How Can You Automatically Generate Interface For The Remotable Object In .Internet With Microsoft Tools?

Use the Soapsuds device.

Q9. What Is Channels?

Remote items are accessed via Channels. Channels physically trport the messages to and from far off gadgets. There are  current channels TcpChannel and HttpChannel. Their names give away the protocols that they use. In addition, the TcpChannel or HttpChannel can be prolonged, or a new channel created in case you determine the existing channels do no longer meet your desires.

Q10. Security In Remoting?

Security is of paramount importance to any distributed utility. Although the .NET Remoting infrastructure does now not define any protection capabilities itself, because disbursed packages are controlled code they've full get entry to to all of the .NET safety features. In addition, the HTTP channel, while used with IIS, allows you to take complete advantage of the authentication and authorization capabilities that are to be had to Web based totally protocols. If you pick out to apply a protocol aside from HTTP with IIS, then you definitely have the opportunity to create your personal safety infrastructure.

Q11. What Are Possible Implementations Of Distributed Applications In .Net?

.NET Remoting and ASP.NET Web Services. If we speak approximately the Framework Class Library, noteworthy lessons are in System.Runtime.Remoting and System.Web.Services.

Q12. What Security Measures Exist For .Internet Remoting In System.Runtime.Remoting?

None. Security need to be looked after at the utility degree. Cryptography and different security techniques may be carried out at application or server stage.

Q13. Scope Of Publication?

.NET Remoting exposes gadgets to other software domains as though they are local, with a few exceptions. The  exceptions maximum likely to journey you up are:

• Static members are never isolated. Remoting constantly offers with a few form of item instance member.

• Private methods are never remoted. You cannot wrap and skip a delegate to a private technique.

This consists of far flung occasion handlers. The different exceptions are much less probable to motive you hassle. The online documentation offers a whole listing and clarification of the exceptions.

Q14. What Are Remotable Objects In .Internet Remoting?

Remotable gadgets are the items that can be marshaled throughout the software domains. You can marshal by means of value, in which a deep reproduction of the object is created after which surpassed to the receiver. You also can marshal by using reference, wherein just a connection with an existing item is handed.

Q15. .Net Remoting Versus Distributed Com ?

In the past interprocess conversation between applications become treated thru Distributed COM, or DCOM. DCOM works well and the overall performance is good enough whilst applications exist on computer systems of similar type on the equal community. However, DCOM has its drawbacks in the Internet connected global. DCOM is based on a proprietary binary protocol that now not all item models aid, which hinders interoperability across structures. In addition, have you tried to get DCOM to work through a firewall? DCOM desires to speak over quite a number ports which are generally blocked by way of firewalls.

There are far to get it to paintings, however they either decrease the effectiveness of the firewall (why hassle to actually have the firewall in case you open up a ton of ports on it), or require you to get a firewall that permits aid for binary visitors over port eight@.NET Remoting removes the problems of DCOM with the aid of supporting distinct trport protocol codecs and verbal exchange protocols. This lets in .NET Remoting to be adaptable to the community environment wherein it's miles getting used.

Q16. What Are Channels In .Net Remoting?

Channels represent the items that trfer the alternative serialized objects from one application area to any other and from one computer to some other, in addition to one technique to every other at the same container. A channel ought to exist earlier than an object can be trferred.

Q17. How Do You Define The Lease Of The Object?

By implementing ILease interface whilst writing the class code.

Q18. What Is .Net Remoting ?

.NET Remoting is an enabler for utility communication. It is a commonplace gadget for distinct programs to use to communicate with each other. .NET items are uncovered to far flung strategies, as a result permitting interprocess communication. The applications can be positioned on the equal computer, extraordinary computers on the identical network, or maybe computer systems throughout separate networks.

Q19. What Is A Formatter?

A formatter is an item that is liable for encoding and serializing statistics into messages on one quit, and deserializing and decoding messages into records on the opposite give up.

Q20. What Distributed Process Frameworks Outside .Net Do You Know?

Distributed Computing Environment/Remote Procedure Calls (DEC/RPC), Microsoft Distributed Component Object Model (DCOM), Common Object Request Broker Architecture (CORBA), and Java Remote Method Invocation (RMI).




CFG