What is AppDomain?Explain how it works.

Answer Posted / murthy remella

Its mandatory to create application domain for running
any .NET code. Its the light weight process in which CLR
will execute the code. AppDomain is built into Framework.

Generally regular application development doesn't require
AppDomain creation, but in some specific scenarios like
loading a component in seperate domain and unloading after
its purpose is served without stopping the entire
application.

ServiceHost Applications (IIS, ASP.NET worker) will handle
creation and management of appDomain in the background

Also, for each virtualdirectory/website one application
domain is created normally, which serves all the incoming
requests.But if you think the load is high and a single
appDomain is scalable then the application can use multiple
appdomains. (http://www.IIS.net for more details)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is state management techniques in asp.net?

531


List the advantages and disadvantages of user control an custom control?

542


Explain Life cycle of ASP.NET page when a request is made.

755


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

5693


Where is cookie used in asp.net?

577






What are the session variables?

518


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

560


How can you implement encapsulation in asp.net?

11315


What are sql notifications and sql invalidations?

530


Define static function?

570


How would you create a permanent cookie?

573


What does the .webpart file do?

591


Explain managed code an un-managed code.

599


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

535


What is difference cookie and session?

528