Interview questions

Asynchronous Programming

Asynchronous Programming in remoting Application 

<<Previous  Next >>

By Nishant Kumar

There are two ways that the remoting objects can be configured. They can be configured by calling configuration methods inside the application. .Net Framework allows configuring objects also by adding configuration section in the application configuration file.
When you apply any change in the configuration section, you don’t need to recompile the code. On the other hand, any change in the setting applied programmatically would require recompiling the code.

Remoting system requires certain information about remote objects to be hosted which are as follows

Activation type
Channels
URL of the remote object
Type metadata

.Net Framework provides RemotingConfiguration class in the System.Runtime.Remoting namespace that allows configuring object programmatically.

In .Net, you can have configuration setting in the application configuration file or in the machine.config file. You can use RemotingConfiguration.Configure method to load the setting in the code, e.g.

RemotingConfiguration.Configure("AppConfig.exe.config")

The configuration attributes in the XML configuration file of the application are below.

<application>
This element contains the information about the remote objects.
<service>
This element contains the remote object.
<wellknown>
This element has three attribute such as mode, type, and objectUri. Mode can be Singleton or SingleCall. Type is the name of the assembly that contains type implementation. ObjectUri specifies the endpoint for the URI of an object.
<activated>
This element contains information about the client-activated objects that are exposed by the application.


<<Previous  Next >>

Also read

What is impersonation in ASP.NET?

ASP.NET can also impersonate a specific account you specify in web.config.........

ASP.NET 2.0 New Controls

In addition to the new controls, ASP.NET 2.0 also provides numerous enhancements to existing controls that make these controls more versatile than ever before in building component-based web pages. For example, the Panel control now has a DefaultButton property that specifies which button should be clicked if the user presses the Enter key while the panel has the focus.........

ASP.NET Application and Session state variables

This articles describes the ways to preserve page data between the requests in ASP.NET using Application and Session state variables.

ASP.NET Master Pages 

This article has content about master page, its advantages and how to create master page in ASP.NET. It also describes about multiple master page.

What’s difference between “Optimistic” and “Pessimistic” locking?

In pessimistic locking, when a user opens a data to update it, a lock is granted....

How can we perform transactions in .NET?

Here are the general steps that are followed during a transaction....



Write your comment - Share Knowledge and Experience


Latest placement tests
Latest links
 
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring