What is AppDomain?Explain how it works.

Answer Posted / manjari anand

The common language runtime has been designed to support a
variety of different types of applications, from Web server
applications to applications with a traditional rich
Windows user interface. Each type of application requires a
runtime host to start it. The runtime host loads the
runtime into a process, creates the application domains
within the process, and loads user code into the
application domains.
Operating systems and runtime environments
typically provide some form of isolation between
applications. For example, Windows uses processes to
isolate applications. This isolation is necessary to ensure
that code running in one application cannot adversely
affect other, unrelated applications.
Application domains provide an isolation boundary for
security, reliability, and versioning, and for unloading
assemblies. Application domains are typically created by
runtime hosts.

You can run several application domains in a single process
with the same level of isolation that would exist in
separate processes.The ability to run multiple applications
within a single process dramatically increases server
scalability.
The isolation provided by application domains
has the following benefits:
• Faults in one application cannot affect other
applications. Because type-safe code cannot cause memory
faults, using application domains ensures that code running
in one domain cannot affect other applications in the
process.
• Individual applications can be stopped without
stopping the entire process. Using application domains
enables you to unload the code running in a single
application.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we store object in viewstate?

630


What is the difference between session and viewstate?

590


How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.

1536


Which is an advantage of application service providers?

563


What is the use of session state and application state and difference between them?

565






Define cookie.

656


is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?

2056


What is the difference between web.config and machine.config in ASP.NET?

688


What is the difference between dynamic SGA and static SGA?

673


What is applicatio domain?

653


How to deploy/publish webservices?How many ways?Plz explain me

1922


How do I know asp.net mvc version? : Asp.Net MVC

599


Explain the difference between an exe and a dll?

608


Explain the use of fragment caching.

752


What are the differences between code behind and code inline?

601