DLL, GAC, and Multiple Web Sites

S

Smithers

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.
 
G

Guest

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Version Control and GAC 0
GAC and namespaces 1
intellisense for dll in gac 0
GAC and memory usage 1
Registering DLL using GAC Util 1
Single DLL vs. Multiple DLLs 1
GAC and Source Safe 4
GAC DLL HELL 9

Members online

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top