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 difference between mvc and asp.net? : Asp.Net MVC

566


How tooltip is set through code-behind in ASP.NET?

573


What are validator? How do you disable them?

599


How to bind all the binding controls in a page at once in ASP.NET?

522


What are the differnt types of handler in ASP.NET?

532






Using code explain Configuration Management

1406


Which .NET framework supports Web API?

588


How many types of session state management options available in asp.net?

534


What is windows active directory authentication?

567


Explain the Order of events in an asp.net page?

602


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1590


Why viewstate is used in asp.net?

507


Where session variables are stored?

541


What is the page life cycle in asp.net?

557


What is the difference between login controls and forms authentication?

539