GAC or bin directory

GAC or bin directory       

https://social.technet.microsoft.com/Forums/windows/en-US/1d5e78e4-6699-43a7-b029-b2ae5e03d27a/gac-or-bin-directory?forum=sharepointdevelopmentlegacy                          

Question

 

                Answers            

    • Question                    
      Sign in to vote                             
      Hi,
      Assemblies deployed to the GAC have full trust, while the assemblies deployed to the bin folder runs with the trust level specified for the web application (standard or custom CAS policy).
      Assemblies deployed to the GAC available to all of the web applications, while while the assemblies deployed to the bin folder are local to the given web application.
      I don't think there is considerably difference in the performance.
      Peter
                      
      • Marked as answer by                             Chengyi Wu                         Monday, August 17, 2009 1:42 AM                    
      Avatar of Peter Holpar, MVP                       
      Peter Holpar, MVP
                 
      12,260                                   
      Points
      Top 0.5
      Peter Holpar, MVP           
      MCC, Partner, MVP            Joined  Jan 2007           
                 

      1

                                                                                             

      5

                                                                                                  

      14

                                              
      adesso Austria GmbH
                                          (MCC, Partner, MVP)                               
      12,260 Points               
       
    •     
 
 
 
    • Question                    
      Sign in to vote                             
      Hi,
      As Hristo wrote, there are special assemblies that should be deployed to GAC. He mentioned custom timer job implementation, but more common sample may be event receiver assemblies.
      Otherwise, deploying assemblies to the bin folder, and having a custom CAS policy is the "official" way, although I think it is more typical to configure full trust or deploy to GAC, as CAS is really not trivial to use correctly.
      Peter
                      
      • Marked as answer by                             Chengyi Wu                         Monday, August 17, 2009 1:42 AM                    
      Avatar of Peter Holpar, MVP                       
      Peter Holpar, MVP
                 
      12,260                                   
      Points
      Top 0.5
      Peter Holpar, MVP           
      MCC, Partner, MVP            Joined  Jan 2007           
                 

      1

                                                                                             

      5

                                                                                                  

      14

                                              
      adesso Austria GmbH
                                          (MCC, Partner, MVP)                               
      12,260 Points               
       
    •     
 
 
 
 
 

                All replies            

    • Question                    
      Sign in to vote                             
      Hi,
      Assemblies deployed to the GAC have full trust, while the assemblies deployed to the bin folder runs with the trust level specified for the web application (standard or custom CAS policy).
      Assemblies deployed to the GAC available to all of the web applications, while while the assemblies deployed to the bin folder are local to the given web application.
      I don't think there is considerably difference in the performance.
      Peter
                      
      • Marked as answer by                             Chengyi Wu                         Monday, August 17, 2009 1:42 AM                    
      Avatar of Peter Holpar, MVP                       
      Peter Holpar, MVP
                 
      12,260                                   
      Points
      Top 0.5
      Peter Holpar, MVP           
      MCC, Partner, MVP            Joined  Jan 2007           
                 

      1

                                                                                             

      5

                                                                                                  

      14

                                              
      adesso Austria GmbH
                                          (MCC, Partner, MVP)                               
      12,260 Points               
       
    •     
 
 
 
    • Question                    
      Sign in to vote                             
      Hi,
      As Hristo wrote, there are special assemblies that should be deployed to GAC. He mentioned custom timer job implementation, but more common sample may be event receiver assemblies.
      Otherwise, deploying assemblies to the bin folder, and having a custom CAS policy is the "official" way, although I think it is more typical to configure full trust or deploy to GAC, as CAS is really not trivial to use correctly.
      Peter
                      
      • Marked as answer by                             Chengyi Wu                         Monday, August 17, 2009 1:42 AM                    
      Avatar of Peter Holpar, MVP                       
      Peter Holpar, MVP
                 
      12,260                                   
      Points
      Top 0.5
      Peter Holpar, MVP           
      MCC, Partner, MVP            Joined  Jan 2007           
                 

      1

                                                                                             

      5

                                                                                                  

      14

                                              
      adesso Austria GmbH
                                          (MCC, Partner, MVP)                               
      12,260 Points               
       
    •     
 
 
 
 
 
posted @ 2017-10-20 16:02  sky20080101  阅读(115)  评论(0)    收藏  举报