Global dll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Siddhartha Jain

    #1

    Global dll

    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.
  • Michael Giagnocavo [MVP]

    #2
    Re: Global dll

    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

    "Siddhartha Jain" <sjain@lioninc. com> wrote in message
    news:1e3acca4.0 307141158.759db 284@posting.goo gle.com...[color=blue]
    > Hi Guys,
    > I am working on a large web application. I have a project which has[/color]
    4[color=blue]
    > 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.[/color]


    Comment

    Working...