473,785 Members | 2,794 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

install assembly in GAC

i create a project and sign it with strong name then i build it into an
assembly as a dll file.
after these i use "gacutil /i assembly.dll" command in command line to
install the assembly and it told me the installation was successful, and i
did find the assemly.dll in c:\windows\asse mbly, it seems that everything
goes well.

when i wantted to reference this assmebly in project, i can't find it in the
".NET" tab of the "Add Reference" window. Didn't i install the assembly
correctly?
Apr 12 '07 #1
2 5785
Yes, you did. However, the dialog for adding assemblies is not
dependent on what is in the GAC. Rather, you have to set up some registry
entries to tell Visual Studio where to look. The following KB article
explains what you have to do:

http://msdn2.microsoft.com/en-us/lib...ky(VS.80).aspx

Look at the section titled "To display an assembly in the Add Reference
dialog box". It will tell you what you have to do.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"fairyvoice " <fa********@dis cussions.micros oft.comwrote in message
news:2F******** *************** ***********@mic rosoft.com...
>i create a project and sign it with strong name then i build it into an
assembly as a dll file.
after these i use "gacutil /i assembly.dll" command in command line to
install the assembly and it told me the installation was successful, and i
did find the assemly.dll in c:\windows\asse mbly, it seems that everything
goes well.

when i wantted to reference this assmebly in project, i can't find it in
the
".NET" tab of the "Add Reference" window. Didn't i install the assembly
correctly?

Apr 12 '07 #2
thank you Nich
i've read the article and made it work by copying my assmebly into "C:\.NET\
Common7\IDE\Pub licAssemblies\" ,
but his third way by adding registry keys did not wrok so i can only copy my
assmebly to a centain directory but using my own directory.

anyway, now i can see the assembly in the ".NET" tab, although still a few
problems left, thank u a lot
Apr 12 '07 #3

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

Similar topics

2
6408
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+ automatically when instantiated from the web site. For this to happen we had to change the context in which asp.net runs from machine to SYSTEM by modifying the machine.config file. Under Windows 2003 no matter how asp.net is set to run as either machine or system. I get the following error: ...
13
1774
by: Dave | last post by:
I have a structure declared as: private struct StandardFrame { public byte frame; public UInt32 integrityCheck; public UInt32 sequenceNo; public UInt32 dataLength;
4
2630
by: Bob | last post by:
Could anyone suggest me some examples/articles on creating a setup program in VS.NET that can install the assembly into the GAC? I have done some search and research myself and have some basic understanding on how to create a setup program. All the articles about Windows Installer 2.0 is the best way to install your assembly into GAC but I haven't found one shows what exactly I need to do differently in my VS.NET setup project in order...
1
1280
by: Andy Butland | last post by:
I've built a dll component that is compiled from contains a number of generic classes, each in separate .vb files, that I'd like to use in several web applications. Currently I'm simply placing a copy of it in each of the \bin directories, but realise the best idea is to install in in the GAC. I'm not clear though as to the method for this, particularly where the assembly information (key file, version number etc.) needs to go. As...
1
6405
by: moondaddy | last post by:
I have a VS 2005 winforms project and am trying to get clickonce deployment working correctly. I published the deployment to a test server on my network. It created the publish.htm and from my dev machine I can pull up publish.htm from the browser and it seems to run OK. However, from a test machine the installation fails. From the test machine I can pull up publish.htm with no problem. When I click on the install button I get the...
2
11576
by: Vayse | last post by:
I published my app in Visual Studio 2005. I'm getting a problem installing on one PC. During the install, the following error appears: "Unable to run or install the application. The application requires that assembly ADODB 7.0.3300.0 be installed in the Global Assembly Cache (GAC) first." The VB6 install used to give you a choice of adding references. The VS 2005 Publish doesn't give any options to include references. What should I be...
3
7280
by: Eric | last post by:
Using VS.Net 2003 .Net framework 1.1 SP1 Our installation project calls a Custom Action dll to perform post install actions. It fails if the .msi file is launch from a directory that contains spaces, such as: My Install Folder\SetupDir The exception thrown is:
2
10930
by: Dean Slindee | last post by:
Getting the following message when doing a ClickOnce install at a deployment PC: "Unable to install or run the application. The application requires that assembly Microsoft.Office.Interop.Access Version 11.0.0.0 be installed in the Global Assembly Cache (GAC) first. Please contact your system administrator." Development PC: Windows 2000, Visual Studio 2005. Application runs reports from an Access.adp, and has a reference to Access 11.0...
3
5237
by: =?Utf-8?B?S2VuIExlbWlldXg=?= | last post by:
My clickonce app fails when the install button on the publish.htm page is clicked. User is prompted with a "Cannot Start Application" dialog. Details provided from the dialog are: PLATFORM VERSION INFO Windows : 5.1.2600.196608 (Win32NT) Common Language Runtime : 2.0.50727.3053 System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll : 2.0.50727.3053 (netfxsp.050727-3000)
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7500
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.