473,386 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

DLL, GAC, and Multiple Web Sites

Just wondering if it is perfectly straight-forward and safe to have a .dll
installed in the GAC on a Web server - and have multiple Web sites make use
of the .dll.

Until now I've been XCopying all files for each Web site - including
duplicating .dlls amongst the sites. I was wondering if I would benefit from
moving the common assemblies to the GAC or continue duplicating them amongst
Web sites.

Would a dll installed in the GAC load into each Web site's AppDomain just as
if it were installed in the site's bin directory?

Thanks.
Aug 14 '07 #1
2 1259
Hi,
as you have mentioned this more about securing your application and web
server than about anything else. Assembly in GAC runs always in FullTrust
mode and by default can be called only by fully trusted callers - you can
change this behavior by applying assembly:AllowPartialyTrustedCallers so
partialy trusted web application can also use this assembly. The question is
if this is really way which you want to go because any assembly running on
your machine can then use that assembly installed in GAC.

Installing assembly to GAC can generaly reduce deployment tasks and allow
you to control versioning in much easier way. But from the security view it
should not be the best way to go.

Regards,
Ladislav
"Smithers" wrote:
Just wondering if it is perfectly straight-forward and safe to have a .dll
installed in the GAC on a Web server - and have multiple Web sites make use
of the .dll.

Until now I've been XCopying all files for each Web site - including
duplicating .dlls amongst the sites. I was wondering if I would benefit from
moving the common assemblies to the GAC or continue duplicating them amongst
Web sites.

Would a dll installed in the GAC load into each Web site's AppDomain just as
if it were installed in the site's bin directory?

Thanks.
Aug 14 '07 #2
If it works, sounds fine to me. Just remember that when you've got a GAC'ed
assembly and you need to change things, you'll now have additional deployment
/ maintenance issues to deal with.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Smithers" wrote:
Just wondering if it is perfectly straight-forward and safe to have a .dll
installed in the GAC on a Web server - and have multiple Web sites make use
of the .dll.

Until now I've been XCopying all files for each Web site - including
duplicating .dlls amongst the sites. I was wondering if I would benefit from
moving the common assemblies to the GAC or continue duplicating them amongst
Web sites.

Would a dll installed in the GAC load into each Web site's AppDomain just as
if it were installed in the site's bin directory?

Thanks.
Aug 14 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: yabba | last post by:
w2k server... after rebooting the event viewer/application log shows multiple restarts of Active Server Pages and they continue to build in memory as each start produces a IWAM_SERVERNAME in the...
5
by: Todd | last post by:
Could someone help me find a tutorial (or perhaps instuct me) in the proper way to configure IIS 5.1 so that I can design and test (using localhost) multiple web sites. My problem arises when I...
6
by: Mark Goldin | last post by:
I have registered a domain that forwards every hit to my home PC. I have configured Default Web site to show one Web from my PC. So when people navigate to www.mydomain.com they see that site....
0
by: FindJobEasy.com | last post by:
With so many job sites on the internet, it is almost impossible for you to search them all. http://www.findjobeasy.com is a job search engine. Multiple job sites will be searched just by one...
2
by: Dave Wright | last post by:
Hi, We have implemented a IIS NLB farm and would like to know if a SQL Session database can be used to host multiple sites? As the entry in web.config does not allow a database name to be...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
2
by: Marcus | last post by:
I have seen many posts of people with the same problem as me (attached below), but I have yet to see any solutions posted. Has anyone figured out how to deploy an Asp.net web site to the webserver...
6
by: Ludvig | last post by:
I have various domains using the same application/assembly They differ in contents and design, based on a "site id", and get its information from an SQL server. Now I have to deploy the...
13
by: Samir Chouaieb | last post by:
Hello, I am trying to find a solution to a login mechanism for different domains on different servers with PHP5. I have one main domain with the user data and several other domains that need...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.