what is application domain?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What are the 3 different types of arrays?
Define collections?
Wcf and what is difference between wcf and web services?
What is difference between overloading and short circuiting?
Define satellite Assembly in .NET?
Is c# the same as d flat?
What is strong data type in c#?
Can you declare the override method static while the original method is non-static?
What debugging tools come with the .NET SDK?
What is datasource c#?
What is c# commonly used for?
Explain the difference between Metadata and Manifest