what is DLL Hell and how it is solved in .NET?

Answer Posted / robert

DLL Hell :- This is a problem in loading a specific dll
(class id, version number, path etc). For example, if I
build test.dll v1.0.0.0 and deploying it in c:\MyProg. My
application App1 and App2 are using the methods in that
dll. And there is a requirement to change something in App1
and I supposed to change test.dll also for the same
requirement. Once I finished with all my changes, I will be
deploying them in the appropriate locations. Now, the older
dll will be overwritten. And my App2 will look for test.dll
of older version and since it is not there it will not
work. This is a scenario for dll hell issue.
.Net Framework provides operating systems with a Global
Assembly Cache. This Cache is a repository for all the .Net
components that are shared globally on a particular
machine. When a .Net component is installed onto the
machine, the Global Assembly Cache looks at its version,
its public key, and its language information and creates a
strong name for the component. The component is then
registered in the repository and indexed by its strong
name, so there is no confusion between different versions
of the same component, or DLL.

Is This Answer Correct ?    51 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is session id generated?

678


Where code pages are used?

922


What is the part of url?

752


What is the most appropriate lifetime for a database connection/orm context in an asp.net mvc application? : Asp.Net MVC

781


Explain client side state management system.

763


What is a query string in a url?

768


What are session state modes? List some of the important session state modes of asp.net.

743


How does session state work in asp.net?

744


What are the advantages and disadvantages of session?

895


What is the difference between runtime version and version?

794


Define static member?

781


What is the flow of processing of the request? : asp.net mvc

768


What is difference between singleton and single call?

850


How do I open an ashx file?

786


What is the mvc model?

798