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
What is the adavantage of using ASP.NET routing?
Can you explain the importance of finalize method in .net?
Is global asax mandatory?
What is asp net_sessionid?
What is asp.net ajax?
What is difference between session and cookie?
What is server transfer?
Why asp.net is used?
what are configuration files?
What are the namespace classes used in asp.net mvc? : asp.net mvc
What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC
How to bind all the binding controls in a page at once in ASP.NET?
Explain method to handle error using HttpError in Web API?
What is the purpose of using MVC programming pattern in ASP.NET?
Where is asp.net session stored?