You are on page 1of 6

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

Question Submitted By :: AKN


I also faced this Question!! Answer Posted
Rank
By

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


Answer This is a problem everybody faced in asp 1 Sharma
#1 application which
uses dll created in vb6. Dll process
still be in memory
even after the objest is destroyed
exclusively causing the
program to restart.

.NET has a functionality call garbage


collection which
wakes up every interval of time and clears
the objects not
been used from the application .

28
Yes
Is This Answer Correct ?
55 No

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


Answer .net solved using dll with different 0 Dhana
#2 versions

42
Yes
Is This Answer Correct ?
21 No

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


Answer Windows Registry can not support the 1 Imtiyaz
#3 multiple versions of Chanderki
same com component this is called the dll
hell problem.

Dll hell problem is solved by dotnet it


allows the
application to specify not only the
library it needs to
run but also the version of the assembly
73
Yes
Is This Answer Correct ?
12 No

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


Answer Dll Hell refers to a set of problems 5 Arjun Jaiswal
# 4 caused when multiple
applications attempt to share a common
component like a
dynamic link library (DLL). The reason for
this issue was
that the version information about the
different components
of an application was not recorded by the
system.

.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.

88
Yes
Is This Answer Correct ?
8 No

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


Answer Dll Hell refers to a set of problems 0 Ashok
#5 caused when multiple
applications attempt to share a common
component like a
dynamic link library (DLL).
using CLR DLL problem is achevied in .net
technology
13
Yes
Is This Answer Correct ?
17 No

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


Answer DLL Hell :- This is a problem in loading a 0 Vimal Victor
# 6 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 and dll hell:- .NET has a provision


to specify whether
a 'Specific Version' to be loaded or not.
If you check with
any dll's propery window, that has a
property called
Specific Version. By default it will be
false for the dll's
created by users. It means whether the
specific version
alone has to be loaded for that project.
If that is false,
then te runtime will load any available
higher version of
dll for that project. Thus this issue has
been sorted out.

11
Yes
Is This Answer Correct ?
5 No

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


Answer DLL Hell :- This is a problem in loading a 0 Robert
# 7 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.

8
Yes
Is This Answer Correct ?
3 No

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


Answer Registry of operating system is unable to 0 Kobra Thakur
#8 support the
multiple versions of
same com component this is called the dll
hell problem.
Dll hell problem is solved by dotnet it
allows the
application to specify not only the
library it needs to
run but also the version of the assembly

10
Yes
Is This Answer Correct ?
2 No

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


Answer Over the history of Windows, the method of 0 Moinuddin
# 9 tracking of DLL
usage was changed by Microsoft several
times, as well as
the problem of rogue
installations that didn't play by the
rules--the result was
called "DLL HELL", and the
user was the victim.
Solving DLL hell is one thing that the
.NET Framework and
the CLR targeted. Under
the .NET Framework, you can now have
multiple versions of a
DLL running
concurrently. This allows developers to
ship a version that
works with their program
and not worry about stepping on another
program. The
way .NET does this is to
discontinue using the registry to tie DLLs
to appliction
and by the concept of assembly

5
Yes
Is This Answer Correct ?
4 No

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


Answer i don't know the correct answer, please 0 Nir
# 10 send to me the
correct answer.

2
Yes
Is This Answer Correct ?
14 No
Re: what is DLL Hell and how it is solved in .NET?
Answer 1. By window file protection. 0 Ajay
# 11 2. using correct COM.

0
Yes
Is This Answer Correct ?
3 No

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


Answer the hell dll problem , is genenerally
# 12 occurs in vs.6.
can also called mismatched .dll file or
mismatched .ocx
file (active x control).
when os xp is installed the active x
sdk(software
development toolkit)& MFC (microsoft
foundation classes ).
MFC40.dll is installed . In vs6
application develpoed
will use MFc42.dll. & when the application
is installed in
default os , MFC42.dll will be not found &
the dll problem
will happen.or HELL DLL PROBLEM -VERSION
CONFLICT.
@ dat time we have to paste MFC42.dll in
win.system32 .
folder & the problem will be solved . but
in earlier
versions this problem has been sorted out.

You might also like