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

573


What is the difference between user control an custom control?

708


What is the difference between dispose() and finalize()?

586


What are the advantages and disadvantages of session?

747


What is httpresponse?

600






How use Xml data in ASP.net?

651


What is the difference between rest and restful?

617


What are the server controls in asp.net?

548


Can we have a web application running without web.config file?

624


What is the difference between session and viewstate?

590


How does cookies work in asp net?

616


What is form submit?

611


What is the use of service provider?

656


Explain weak typing and strong typing.

639


What are the types of authentication in asp.net?

619