DLL conflicts

Discussion in 'ASP .Net' started by pbd22, May 28, 2009.

  1. pbd22

    pbd22 Guest

    Hi.

    If i have multiple DLLs that require the same library references to
    run (for example, all using the MyCompany.Security) namespace and
    referencing the same User class, how do I avoid a conflict when I am
    finally adding the DLLs to my project?

    I hope I explained myself well.

    Thanks.
     
    pbd22, May 28, 2009
    #1
    1. Advertisements

  2. re:
    !> If i have multiple DLLs that require the same library references to
    !> run (for example, all using the MyCompany.Security) namespace and
    !> referencing the same User class, how do I avoid a conflict when I am
    !> finally adding the DLLs to my project?

    Why do you think that would create a DLL conflict ?



    Juan T. Llibre, asp.net MVP
    Foros de VS 2010 y ASP.NET 4.0, en español
    http://asp.net.do/foros/forums/
    =================================
    "pbd22" <> wrote in message news:...
    >
    > Hi.
    >
    > If i have multiple DLLs that require the same library references to
    > run (for example, all using the MyCompany.Security) namespace and
    > referencing the same User class, how do I avoid a conflict when I am
    > finally adding the DLLs to my project?
    >
    > I hope I explained myself well.
    >
    > Thanks.
     
    Juan T. Llibre, May 28, 2009
    #2
    1. Advertisements

  3. pbd22

    pbd22 Guest

    On May 28, 3:19 pm, "Juan T. Llibre" <>
    wrote:
    > re:
    > !> If i have multiple DLLs that require the same library references to
    > !> run (for example, all using the MyCompany.Security) namespace and
    > !> referencing the same User class, how do I avoid a conflict when I am
    > !> finally adding the DLLs to my project?
    >
    > Why do you think that would create a DLL conflict ?
    >
    > Juan T. Llibre, asp.net MVP
    > Foros de VS 2010 y ASP.NET 4.0, en españolhttp://asp.net.do/foros/forums/
    > =================================
    >
    > "pbd22" <> wrote in messagenews:...
    >
    > > Hi.

    >
    > > If i have multiple DLLs that require the same library references to
    > > run (for example, all using the MyCompany.Security) namespace and
    > > referencing the same User class, how do I avoid a conflict when I am
    > > finally adding the DLLs to my project?

    >
    > > I hope I explained myself well.

    >
    > > Thanks.


    Well, maybe i have the wording wrong. But, when I compile a library
    "into"
    another library and then call the complied library from a class that
    also references the library compiled into the DLL I, of course, get a
    conflict.
    There are two instances of the same class. So, I guess I am asking -
    what is the most graceful way of handling such conditions?
     
    pbd22, May 29, 2009
    #3
  4. re:
    !> when I compile a library "into" another library and then call the complied library
    !> from a class that also references the library compiled into the DLL I, of course,
    !> get a conflict. There are two instances of the same class. So, I guess I am asking -
    !> what is the most graceful way of handling such conditions?

    Merge your classes into a single source file and eliminate duplicate class names.
    Also, you can simply make sure you don't use the same class name in multiple source files.





    Juan T. Llibre, asp.net MVP
    Foros de VS 2010 y ASP.NET 4.0, en español
    http://asp.net.do/foros/forums/
    =================================
    "pbd22" <> wrote in message news:...
    On May 28, 3:19 pm, "Juan T. Llibre" <>
    wrote:
    > re:
    > !> If i have multiple DLLs that require the same library references to
    > !> run (for example, all using the MyCompany.Security) namespace and
    > !> referencing the same User class, how do I avoid a conflict when I am
    > !> finally adding the DLLs to my project?
    >
    > Why do you think that would create a DLL conflict ?
    >
    > Juan T. Llibre, asp.net MVP
    > Foros de VS 2010 y ASP.NET 4.0, en españolhttp://asp.net.do/foros/forums/
    > =================================
    >
    > "pbd22" <> wrote in messagenews:...
    >
    > > Hi.

    >
    > > If i have multiple DLLs that require the same library references to
    > > run (for example, all using the MyCompany.Security) namespace and
    > > referencing the same User class, how do I avoid a conflict when I am
    > > finally adding the DLLs to my project?

    >
    > > I hope I explained myself well.

    >
    > > Thanks.


    Well, maybe i have the wording wrong. But, when I compile a library
    "into"
    another library and then call the complied library from a class that
    also references the library compiled into the DLL I, of course, get a
    conflict.
    There are two instances of the same class. So, I guess I am asking -
    what is the most graceful way of handling such conditions?
     
    Juan T. Llibre, May 29, 2009
    #4
  5. pbd22

    pbd22 Guest

    I like the idea of one DLL that contains all the classes and will
    likely do that. But, I think the problem is that I have a web service
    that must consume classes that are also consumed by the Web
    project that calls the web service. In this case, I cannot use the
    same "master" DLL for both the web service and the web project.
    I think your second suggestion of renaming the classes (called by
    the web service) is the only way forward that I can think of (and a
    minor pain in the butt).

    Thanks again.
     
    pbd22, Jun 10, 2009
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JonoMG

    Runtime Library Conflicts

    JonoMG, Apr 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    674
    JonoMG
    Apr 7, 2004
  2. Anushi
    Replies:
    5
    Views:
    10,572
  3. Cathy Boland

    MSN IM conflicts with Framework 1.1 ?

    Cathy Boland, Nov 18, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    518
    Daniel Melo
    Nov 19, 2003
  4. Cipher
    Replies:
    3
    Views:
    1,730
    coollzh
    Apr 30, 2004
  5. Sarah
    Replies:
    1
    Views:
    437
  6. somequestion
    Replies:
    1
    Views:
    1,254
    somequestion
    Nov 8, 2005
  7. Russell Blau

    Python/Tkinter DLL conflicts on Windows

    Russell Blau, Dec 26, 2007, in forum: Python
    Replies:
    2
    Views:
    443
    Martin v. Löwis
    Dec 26, 2007
  8. H. Simpson
    Replies:
    4
    Views:
    624
    H. Simpson
    Aug 3, 2004
Loading...