Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

What is the maximum size for an assembly, and how are instances shared in the GAC?

Posted on 2004-08-06
1
363 Views
Last Modified: 2011-10-03

I have created an Assembly in VB.NET that holds typed DataSet classes of all tables in our SQL Server DB.  The assembly is called by ASP.NET pages.  Currently the Assembly is aprox 3 megs in size, and still growing.  Is the size a concern?  How big is too big?

Is it appropriate to have this assembly located in the GAC?  Or should it be in a web application Bin directory?  If it is in the GAC, is only one instance loaded into memory and shared?  Or does it become a resource hog?

Thanks

0
Comment
Question by:CarlPenman
1 Comment
 
LVL 96

Accepted Solution

by:
Bob Learned earned 50 total points
ID: 11738678
I wouldn't worry about assembly size too much with faster computers these days.  Size may be a concern, but I think that is when it grows to around 15-20 MB.  If it becomes a problem, then you can segment the code into libraries that can be loaded and used when needed, instead having the code all in one assembly.

I treat the GAC like the Windows System Registry with COM (ActiveX) stuff.  It is more of a headache than I think is worth.  You can put dynamic library assemblies in the same location as the executing assembly (bin folder for ASP.NET), or even in a relative-path subfolder.  There just needs to be ways for .NET to find these assemblies.

Bob
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question