?
Solved

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

Posted on 2004-08-06
1
Medium Priority
?
376 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 100 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

755 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