Define DLL Hell problem in C#
Define how to create different version of assembly and execute it.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sandeep Singh ShekhawatRank #147 · 15.6K reputationPosted Oct 5, 2012, 3:10 AM EDT
DLL Hell: In windows applications some dlls are shared ones. Suppose app1 is an application running perfectly. It is sharing a shared dll named shared1.dll. You are installing another application app2. Suppose app2 application is also having a shared dll named shared1.dll. At the time of app2 installation, installer will overwrite the shared1.dll which is already there on our system and being shared by app1. The new shared1.dll may be different than the previous dll which is overwritten. Now the application app1 which is depending on overwritten shared1.dll will become defunct. app1 will fail. that's all about dll hell.
.net shared assemblies are strongly named. Different assemblies with same name but with different version numbers may coexist in shared folders.This is the solution provided by .net.
You can use new version using bindingRedirect. More detail..
http://msdn.microsoft.com/en-us/library/7wd6ex19(v=VS.100).aspx
Satyapriya NayakRank #47 · 31.5K reputationPosted Oct 5, 2012, 4:00 AM EDT
The dll hell problem is solved in .NET by signing the shared assemblies with strong name.
Please refer the below link
http://venkataspinterview.blogspot.com/2011/06/how-is-dll-hell-problem-solved-in-net.html
Thanks
Mahesh ChandRank #1 · 393.3K reputationPosted Oct 7, 2012, 9:58 AM EDT