I am attempting to install the Rebex FTP components into my GAC for use in several applications, but it fails both from the command line and the .NET Configuration utility. I am following the instructions in the FAQ

Command line:

C:\Program Files\Rebex\File Transfer Pack for .NET 2.0\FTP SSL for .NET 2.0\bin>c:\windows\Microsoft.NET\Framework\v1.1.4322\gacutil.exe /i Rebex.Net.Ftp.dll

Microsoft (R) .NET Global Assembly Cache Utility.  Version 1.1.4318.0
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Failure adding assembly to the cache: Unknown Error

.NET Configuration utility (selecting the same DLL as above, Rebex.Net.Ftp.dll:

Cannot Add Assembly
Unable to add the selected assembly.  The assembly must have a strong name (name, version and public key).

Shouldn't the DLLs have a strong name provided by Rebex?

I understand I can distribute the DLLs with the rest of the application, etc. but for ease of deployment with multiple apps using the DLLs on one system I would much prefer to use the GAC. I'm a little surprised that this (registering the DLLs with the GAC) wasn't an option as part of the installation.

Where do I go from here to register with the GAC?

asked 15 Nov '11, 16:44

andyl's gravatar image

andyl
15
accept rate: 0%


It is caused because you use gacutil.exe for .NET 1.1. Please use the gacutil.exe for .NET 2.0.

If you cannot find the gacutil.exe in the c:\windows\Microsoft.NET\Framework\v2.0.50727\ directory try the c:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe directory instead.

Alternatively you can run the Start -> Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt and type:

gacutil.exe /i "C:\Program Files\Rebex\File Transfer Pack for .NET 2.0\FTP SSL for .NET 2.0\bin\Rebex.Net.Ftp.dll"
link

answered 16 Nov '11, 13:56

Lukas%20Matyska's gravatar image

Lukas Matyska ♦♦
90117
accept rate: 28%

edited 16 Nov '11, 13:56

There is no gacutil.exe in c:\windows\Microsoft.NET\Framework\v2.0.50727\ and I will not have Visual Studio installed on the servers where my applications & scripts using the components need to run. Do I need to install the .NET Framework SDK on these systems? Or will this PowerShell script do the job?

(16 Nov '11, 15:30) andyl

I am not familiar with the PoweShell, so I cannot tell. But it seems just copying the gacutil.exe and gacutil.exe.config to the server will do the work (see this post).

(16 Nov '11, 15:50) Lukas Matyska ♦♦

I read elsewhere that just copying gacutil wasn't advisable. The powershell script did the job and is more portable; I can just include instructions to run it from a shared drive as part of the install process.

I still believe it would be useful to have an option to install into the GAC during the main install process.

(17 Nov '11, 18:13) andyl
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×15

Asked: 15 Nov '11, 16:44

Seen: 432 times

Last updated: 17 Nov '11, 18:13