473,412 Members | 3,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Adding assemblies to the GAC

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
Nov 21 '05 #1
1 1054
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.

"Robert Smith" <Ro*********@discussions.microsoft.com> wrote in message
news:60**********************************@microsof t.com...
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

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chien Lau | last post by:
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class...
0
by: CES | last post by:
This is probably a stupid question but is their a way of adding a pointer to an assemblies within the code as apposed to adding an assemblie referance in the Machine.Config file? I'm on a...
2
by: Christopher Kimbell | last post by:
In ASP.NET, is it possible to add new pages without having to recompile the whole website? Can the site span several dlls? Chris -- Using Opera's revolutionary e-mail client:...
18
by: Praveen Ramesh | last post by:
Hi, Is there any way to add the @Assembly reference to the aspx files programmatically from inside a custom control (when it gets dropped on to the page from the toolbox)? I have a custom...
1
by: Brian Conklin | last post by:
Hello Eneryone, I am having a problem. I have written a little app that will take a text "pipe" delimited file and place all of the values in to an Excel spreadsheet. It works great on any of my...
2
by: Chris Wertman | last post by:
I am rustier than I thought when it comes to Visual Studio and VB.NET for the last year I have been writing only ASP.NET pages in inline code and well I kinda forget how to add a reference , well...
1
by: Max | last post by:
Searched all over google and can't seem to find how to do this. How do I go about adding comments about my own functions and sub-procedures? Like when I use them, the tool-tip tells me more then...
2
by: E-ploko | last post by:
Hello all, Here we have a large set of assemblies... about 250 lying around and we have to reference them all in a project. Is there a way in existence that'd allow us to somehow bundle them all...
4
by: gnewsgroup | last post by:
I searched around, but could not find out why and how to stop this. Ever since I installed Oracle 11g on my machine, Visual Studio will automatically add the following oracle assemblies into my...
12
by: Jeff Gaines | last post by:
I am a hobbyist programmer, using C# and VS2008 and writing desktop apps. I am trying hard to take a modular approach to avoid re-inventing the wheel but I'm finding it a bit frustrating. For...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.