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

is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?

2142


is gateway for sms continue connected for sending sms.how?

2016


What language does asp.net use?

727


Explain about ASP.NET?

810


Can you explain architecture of your project ?

828






Can you set which type of comparison you want to perform by the comparevalidator control?

694


What is the use of placeholder control? Can we see it at runtime?

784


What is difference between session and cookies in asp net?

705


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1634


Describe the difference between inline and code behind - which is best in?

714


Explain the benefits of viewstate?

763


What is the adavantage of using ASP.NET routing?

845


How can you enable impersonation in the web.config file?

748


Where is asp.net session stored?

657


Why we go for mvc instead of asp.net? : Asp.Net MVC

692