Adding assemblies to the GAC

G

Guest

Hello,
I have a problem with inherited forms. I have a project containing
base forms and also in my main project I have forms that inherit these base
forms. However I ofthen get random errors in my inherited forms saying that
certain controls aren't
declared when quite clearly they are. Often re-loading the solution will
cure this problem. The ms knowledgebase indicates that this is because the
assembly does not exist in the Global Assembly Cache.

How do I add the assembly for the Base forms to the GAC?
I know that you can go Gacutil -ul <assembly name> , but how do I find out
what
the assembly name is? Is it the name of the dll? is the full path required.
The whole
area of assemblies is very confusing.
This inherited forms problem seems to be a major bug in visual studio .net
2003.

Thanx in advance

Robert
 
B

Bob Powell [MVP]

The name will indeed be the DLL filename. Be aware however that any assembly
that you wish to place in the assembly cache must be strong named. You can
do this manually using sn.exe or alternatively use sn to generate a set of
keys and reference the key file in the assemblyinfo file.

Take a look at the assemblyinfo file for your DLL, you will see that it has
instructions for strong naming with the IDE included.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top