NickStuart
Posts: 8
Joined: Mon Jun 21, 2004 6:15 pm

Problem with .net assemblies

Hi all, I'm trying to install my .net dll's with my java program but cant seem to get very far. When AI goes to register the DLL's I keep getting the following error:

The assembly is not strongly named or is not signed with the minimal key length....
The problem is I need to use Interop dlls that I can't give strong names and would like to avoid the pain in the ass that it is do to all that. All the dll's register and work fine on my development machine so why should I need to give them a strong name if I dont care?

Any pointers/suggestions here?
UdreaMihai
Posts: 90
Joined: Wed Mar 23, 2005 8:13 am

Hello Nick,

If you are trying to install the assembly in Global Assembly Cache, you must use a "strongly-named" assembly. This has to do with Microsoft's policy.

Best,

Mihai.
Udrea Mihai
Advanced Installer Team
http://www.advancedinstaller.com
Guest

Re: Problem with .net assemblies

NickStuart wrote:Hi all, I'm trying to install my .net dll's with my java program but cant seem to get very far. When AI goes to register the DLL's I keep getting the following error:

The assembly is not strongly named or is not signed with the minimal key length....
The problem is I need to use Interop dlls that I can't give strong names and would like to avoid the pain in the ass that it is do to all that. All the dll's register and work fine on my development machine so why should I need to give them a strong name if I dont care?

Any pointers/suggestions here?
You probably already figured out what to do, but I ended up using "regasm foo.dll /codebase" to get my unsigned .NET dll to work properly. The SN tool is quite a nightmare for a small developer.

Return to “Common Problems”