PDA

View Full Version : Registering a *.dll file to the GAC



jeffemsi
03-09-2005, 06:09 PM
Hello

I recently upgraded from 5.1 to 10.5. The reason is that I have a new
*.dll file that cannot be simply "self-registered". Apparently this *.dll
needs to go to the GAC. I've been doing some reading to understand
this but I still cannot figure it out.

I created a new component and toggled on these two options:

.NET scan at build: dependencies
.NET assmembly: local assembly

So I try to test the application. The *.dll doesn't show up in the
C:\Windows\assembly folder and the application crashes when making
a call to this new *.dll

I can register the *.dll manually by using the command:

RegAsm.exe terraclass.dll.

How can I get my Installshield program to accomplish this.

Thanks

Jeff

neo_matrix
03-10-2005, 07:33 AM
Have you set the Destination property for this component to GAC.

Click on the component in which this DLL assembly is located. Navigate to it's Destination location. Type the following value there:
[GlobalAssemblyCache]

This should do the trick.

Neo

jeffemsi
03-10-2005, 10:42 AM
Neo (and others)

But it is my understanding that doing this will MOVE the *.dll to a
different directory. The *.dll in question must be physically located
where the main application is installed:

C:\app name\app.exe

By setting the destination will this still happen?

Thanks

Jeff