Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Sharing DLLs across multiple ASP.NET apps

Sharing DLLs across multiple ASP.NET apps

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdotnetbusiness
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JamminJimE
    wrote on last edited by
    #1

    Man, I have a GOOD question for the brilliant minds out here on CodeProject. I have been tasked with cleaning up a single ASP.NET web application that has been broken out into 5 different and smaller web apps. One of the projects, a "Class Library" project if you will, has a set of common DLLs that are used by all 4 of the other new smaller web applications. These "Class Libraries" are frequently updated as they contain the business logic for EACH of the 4 smaller web applications and they contain the data logic for the same. NOW, for the hard part.... 1) I need to keep the DLLs in the "Class Library" in sync ( 1 version shared by all web apps) 2) I CANNOT load them into the GAC (changed too frequently and company policy prohibits hit (NOT MY POLICY :mad:)) 3) I am attempting to make this easier to maintain these DLLs instead of having to deploy them to all 4 web apps' bin directories when something in changed. 4) I cannot break up the "Class Library" and move the business/data logic to the application that uses it. As much as that would be the RIGHT thing to do, you know how it is with big companies. :doh: Can ANYONE tell me an intelligent way to accomplish this seemingly impossible task? I am pulling out all of the grey hair that this industry has caused me trying to come up with a viable solution to this problem!! Thanks in advance!

    JamminJimE Microsoft Certified Application Developer
    Why are we still calling it Common Sense when it's just not that common?

    C L 2 Replies Last reply
    0
    • J JamminJimE

      Man, I have a GOOD question for the brilliant minds out here on CodeProject. I have been tasked with cleaning up a single ASP.NET web application that has been broken out into 5 different and smaller web apps. One of the projects, a "Class Library" project if you will, has a set of common DLLs that are used by all 4 of the other new smaller web applications. These "Class Libraries" are frequently updated as they contain the business logic for EACH of the 4 smaller web applications and they contain the data logic for the same. NOW, for the hard part.... 1) I need to keep the DLLs in the "Class Library" in sync ( 1 version shared by all web apps) 2) I CANNOT load them into the GAC (changed too frequently and company policy prohibits hit (NOT MY POLICY :mad:)) 3) I am attempting to make this easier to maintain these DLLs instead of having to deploy them to all 4 web apps' bin directories when something in changed. 4) I cannot break up the "Class Library" and move the business/data logic to the application that uses it. As much as that would be the RIGHT thing to do, you know how it is with big companies. :doh: Can ANYONE tell me an intelligent way to accomplish this seemingly impossible task? I am pulling out all of the grey hair that this industry has caused me trying to come up with a viable solution to this problem!! Thanks in advance!

      JamminJimE Microsoft Certified Application Developer
      Why are we still calling it Common Sense when it's just not that common?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I think I'd add a post build task that copies the dll to all four directories after a build.

      Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      J 1 Reply Last reply
      0
      • C Christian Graus

        I think I'd add a post build task that copies the dll to all four directories after a build.

        Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        J Offline
        J Offline
        JamminJimE
        wrote on last edited by
        #3

        Unfortunately, I don't have that luxury either. The code is compiled on my local machine. It is then deployed to the DEV server. I have ZERO control over the DEV server and they will NOT grant any permissions other than for me to copy files out there. I contemplated a small "FileWatcher" service that, once the files changed in the BIN of the "Class Library" folder, to copy them out to the bins. I can't even put a service on the DEV box!

        JamminJimE Microsoft Certified Application Developer
        Why are we still calling it Common Sense when it's just not that common?

        C 1 Reply Last reply
        0
        • J JamminJimE

          Unfortunately, I don't have that luxury either. The code is compiled on my local machine. It is then deployed to the DEV server. I have ZERO control over the DEV server and they will NOT grant any permissions other than for me to copy files out there. I contemplated a small "FileWatcher" service that, once the files changed in the BIN of the "Class Library" folder, to copy them out to the bins. I can't even put a service on the DEV box!

          JamminJimE Microsoft Certified Application Developer
          Why are we still calling it Common Sense when it's just not that common?

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          OK, but for testing, you can do that, then it becomes an issue of deployment.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          1 Reply Last reply
          0
          • J JamminJimE

            Man, I have a GOOD question for the brilliant minds out here on CodeProject. I have been tasked with cleaning up a single ASP.NET web application that has been broken out into 5 different and smaller web apps. One of the projects, a "Class Library" project if you will, has a set of common DLLs that are used by all 4 of the other new smaller web applications. These "Class Libraries" are frequently updated as they contain the business logic for EACH of the 4 smaller web applications and they contain the data logic for the same. NOW, for the hard part.... 1) I need to keep the DLLs in the "Class Library" in sync ( 1 version shared by all web apps) 2) I CANNOT load them into the GAC (changed too frequently and company policy prohibits hit (NOT MY POLICY :mad:)) 3) I am attempting to make this easier to maintain these DLLs instead of having to deploy them to all 4 web apps' bin directories when something in changed. 4) I cannot break up the "Class Library" and move the business/data logic to the application that uses it. As much as that would be the RIGHT thing to do, you know how it is with big companies. :doh: Can ANYONE tell me an intelligent way to accomplish this seemingly impossible task? I am pulling out all of the grey hair that this industry has caused me trying to come up with a viable solution to this problem!! Thanks in advance!

            JamminJimE Microsoft Certified Application Developer
            Why are we still calling it Common Sense when it's just not that common?

            L Offline
            L Offline
            Lucky Sheikh
            wrote on last edited by
            #5

            hye problem, dll is use for reusability of code and program u can execute class library many more times in a different way first of all u have to knowledge abt dll,s read the dll deeply then ask the question to anyone ok don,t waste ur time with such type of question ok byeeeee lucky

            J 1 Reply Last reply
            0
            • L Lucky Sheikh

              hye problem, dll is use for reusability of code and program u can execute class library many more times in a different way first of all u have to knowledge abt dll,s read the dll deeply then ask the question to anyone ok don,t waste ur time with such type of question ok byeeeee lucky

              J Offline
              J Offline
              JamminJimE
              wrote on last edited by
              #6

              Ummm...what? :confused: If you are trying to suggest that I use class libraries vs. using a dll, that is even more confusing. If that's not what you're suggesting, then I have no clue what you are saying. I have no input as to the architecture of this application. I have a small opportunity to clean up some poorly written code by reorganizing it the best that we can without a complete re-write. I do NOT have the luxury of taking the application apart and putting it back together correctly. That would literally take months to complete such a task and we have a production deadline approaching long before that project would be completed.

              JamminJimE Microsoft Certified Application Developer
              Why are we still calling it Common Sense when it's just not that common?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups