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 is overloading & overriding
3 Answers Fulcrum Logic, Synergy,
If I want to override a method 1 of class A and in class b then how do you declare ?
What is hashset c#?
What does mean c#?
Oops concepts ?
2 Answers Accenture, Digital GlobalSoft,
Define an array?
What is managed or unmanaged code?
What are the drawbacks of extending an interface as opposed to extending a class?
What are constructors in c#?
What are extensions methods in c#?
Is c# an open source language?
What is readline c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)