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

Explain server-side scripting and client-side scripting.

702


Explain the main function of url routing system in asp.net mvc? : asp.net mvc

705


Where would you use an ihttpmodule, and what are the limitations of any?

775


Difference between using directive vs using statement?

717


How do you secure your connection string information?

726


What is app_code folder in asp net?

764


How to display validation messages in one control?

751


To redirect the user to another page which method do we use without performing a round trip to the client?

726


In What Order Do The Events Of An Aspx Page Execute. As A Developer Is It Important To Undertsand These Events?

798


Define xmlvalidatingreader class.

823


Define web.config in .net?

842


Define page fragment caching?

698


What is asp.net version?

732


What are Authentication and Authorization?

846


How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?

743