Sharing DLLs across multiple ASP.NET apps
-
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? -
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?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 )
-
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 )
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? -
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?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 )
-
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?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
-
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
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?