Global dll

  • Thread starter Thread starter Siddhartha Jain
  • Start date Start date
S

Siddhartha Jain

Hi Guys,
I am working on a large web application. I have a project which has 4
subprojects in it. There is a subproject which basically consists of
user controls. I want to do something with which this projects's DLL
is accessible by all other web applications. Can I do it by putting
the DLL of that user control project in GAC ? if yes how? and if no
whats the other way to do it?

Thanks a ton!!!
-Siddhartha.
 
In each project, you can reference that DLL. VS.NET will
automatically copy the DLL to the bin dir of each app. This is nice
because it's no additional work and ensures each app has the correct
version (in case of a version compatability issue, you can do side by
side).
If you want to use a common folder, you could use the GAC, but
preferably, you'd use a common codebase without the GAC:
Set copy local to false in each reference to the DLL.
Give the DLL a strong name.
Add a <probing> element to your web.config for each project to
tell the runtime where to look:

-mike
MVP
 
Back
Top