Assembly Referencing Question

Discussion in 'ASP .Net' started by Jason MacKenzie, Nov 23, 2004.

  1. We are clearly going about this the wrong way so before we get too far I
    would like some advice.

    We have all common assemblies like our page base class etc located on our
    Dev server.

    We reference them in all our applications with Copy Local set to trued

    We then publish them to the production server for example so each asp.net
    app has a copy of the common assembly in the bin directory.

    This is of course leaving us with the problem of having to replace the
    assembly in every bin directory when a change is made.

    What is the best practice to avoid this issue?

    Thanks a million,

    Jason MacKenzie
     
    Jason MacKenzie, Nov 23, 2004
    #1
    1. Advertising

  2. Hi Jason,

    I'd say the easiest solution is to strong name the assemblies and put them
    into the GAC where ever app would find them. You could probably call the
    gacutil with a batch file to make the process efficient:

    http://msdn.microsoft.com/library/d...obal_assembly_cache_utility__gacutil_exe_.asp

    Ken

    "Jason MacKenzie" <> wrote in message
    news:Oy5Z%...
    > We are clearly going about this the wrong way so before we get too far I
    > would like some advice.
    >
    > We have all common assemblies like our page base class etc located on our
    > Dev server.
    >
    > We reference them in all our applications with Copy Local set to trued
    >
    > We then publish them to the production server for example so each asp.net
    > app has a copy of the common assembly in the bin directory.
    >
    > This is of course leaving us with the problem of having to replace the
    > assembly in every bin directory when a change is made.
    >
    > What is the best practice to avoid this issue?
    >
    > Thanks a million,
    >
    > Jason MacKenzie
    >
     
    Ken Cox [Microsoft MVP], Nov 23, 2004
    #2
    1. Advertising

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

    referencing assembly from aspx page

    Jeremy Chapman, Jul 31, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    511
    Saravana
    Aug 1, 2003
  2. Brent
    Replies:
    1
    Views:
    1,389
    Brent
    Jan 23, 2004
  3. Stefan Rosi

    referencing an assembly in subdirectories

    Stefan Rosi, Jun 4, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    397
    Stefan Rosi
    Jun 4, 2004
  4. =?Utf-8?B?TWlrZQ==?=

    Referencing Assembly Question Without GAC?

    =?Utf-8?B?TWlrZQ==?=, Dec 1, 2004, in forum: ASP .Net
    Replies:
    12
    Views:
    799
    =?Utf-8?B?TWlrZQ==?=
    Dec 2, 2004
  5. Rod  Snyder

    referencing assembly in GAC

    Rod Snyder, Dec 27, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    3,874
    Ken Cox [Microsoft MVP]
    Dec 29, 2004
Loading...

Share This Page