what is application domain?

Answers were Sorted based on User's Feedback



what is application domain?..

Answer / tiger skumar

Every process has its own virtual memory.Becoz of its not
affect the another process when a process throws an
error.But .net it went one step ahead.Multiple application
can run on same process.But its divide into application
domain.Among the application domain the object invoke can be
done through the Remoting.

Is This Answer Correct ?    12 Yes 2 No

what is application domain?..

Answer / syntel ltd.

Application Domain is used to create a mirror image of an
application. reason being if you do not want to stop OR
down the site , .Net framefork give u feature called App
Domain, through which u can make the changes and uploaded
to the site without getting it down or Stop.

Is This Answer Correct ?    13 Yes 5 No

what is application domain?..

Answer / venkateswrlu repala

Before discussing app domains..we have to know abt windows process and how it works.. windows process used to restrict and protect application while executing from unauthorised access ... unauthorized access means one application can not use resourses allocated to another application, and application belongs to one process can not directly communicate with other application etc. From .net2.0 a new concept introduced app domains . in this clr put 2 or more related applications in single windows process with out crossing the isolation rules. the applications belongs to different app domains of same process can communicate easily through clr.. one application can launch an app domain in the same process and communicate with it .

Is This Answer Correct ?    5 Yes 1 No

what is application domain?..

Answer / bsatish

AppDomains are usually created by hosts. Examples of hosts
are the Windows Shell, ASP.NET and IE. When you run a .NET
application from the command-line, the host is the Shell.
The Shell creates a new AppDomain for every application.
AppDomains can also be explicitly created by .NET
applications. Here is a C# sample which creates an
AppDomain, creates an instance of an object inside it, and
then executes one of the object's methods. Note that you
must name the executable 'appdomaintest.exe' for this code
to work as-is.
• using System;
• using System.Runtime.Remoting;

• public class CAppDomainInfo : MarshalByRefObject
• {
• public string GetAppDomainInfo()
• {
• return "AppDomain = " +
AppDomain.CurrentDomain.FriendlyName;
• }
• }
• public class App
• {
• public static int Main()
• {
• AppDomain ad =
AppDomain.CreateDomain( "Andy's new domain", null, null );
• ObjectHandle oh = ad.CreateInstance
( "appdomaintest", "CAppDomainInfo" );
• CAppDomainInfo adInfo =
(CAppDomainInfo)(oh.Unwrap());
• string info =
adInfo.GetAppDomainInfo();
• Console.WriteLine( "AppDomain
info: " + info );
• return 0;
• }
}

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Sharp Interview Questions

How does a while loop work?

0 Answers  


How do we achieve encapsulation in c#?

0 Answers  


What are primitive data types in c#?

0 Answers  


Is comparable a functional interface?

0 Answers  


What is the purpose of the integer parse method the decimal parse method?

0 Answers  






How the versioning applies to Assemblies or can you explain version numbers?

0 Answers   CitiusTech,


Is is possible to force garbage collector to run?

0 Answers  


What is multicast delegate explain with example?

0 Answers  


Tell me something about Exceptions. What is the common exception class?

4 Answers   HCL,


Explain dataadapter.update method in .net?

0 Answers  


User's session is explicitly killed by which method ?

0 Answers   Siebel,


what are windows services?

0 Answers  


Categories