DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 00:13:27 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Smithers
          2    Ladislav Mrnka
          3    Peter Bromberg [C# MVP]


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.
Date:Tue, 14 Aug 2007 00:13:27 -0700   Author:  

RE: DLL, GAC, and Multiple Web Sites   
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. 
> 
> 
> 
Date:Tue, 14 Aug 2007 01:52:01 -0700   Author:  

RE: DLL, GAC, and Multiple Web Sites   
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. 
> 
> 
> 
Date:Tue, 14 Aug 2007 03:56:01 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us