Solved

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

Posted on 2004-08-06
1
360 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now