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 |
In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?
Is predicate a functional interface?
If there are 2 interface IParentInterface & IChildInterface as follows. interface IParentInterface { void InterfaceMethod(); } interface IChildInterface : IParentInterface { void InterfaceMethod(); } Both the interface contains method with same name InterfaceMethod(). How InterfaceMethod() will be handled in IChildInterface as its deriving IParentInterface
can you overload a method of class A in Class B if it is derived class of A?If it is yes tell me how is it possible?
4 Answers Mphasis, Ness Technologies,
Does c# have functions?
Explain about multithreading?
What are Custom Control and User Control?
Where’s global assembly cache located on the system?
Where do I put dll files?
Name any three ways to pass parameters to a method in c#?
Is c# used for frontend or backend?
How is exception handling implemented in c#?