all groups > dotnet interop > november 2006 >
You're in the

dotnet interop

group:

..... Error ...........


..... Error ........... saravana via DotNetMonster.com
11/25/2006 12:48:17 PM
dotnet interop:
Hi ,


cmdprompt>>sn.exe -k key.snk

cmdprompt>>Regasm asmname.dll /tlb:asmname.tlb

cmdprompt>>Gacutil /i asmname.dll


I am getting the following error....


Failure adding Assembly to the Cache
Attempt to install an Assembly without
a Strong name..



Please provide solution to this..

Advance thanks

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-interop/200611/1
Re: ..... Error ........... Jigar Mehta
11/25/2006 5:46:32 PM
Hello saravana,

You created the strong name key pairs using sn.exe, but did you add that
SNK file to your project before compilation? I mean is that added in your
assembly resource? If not, just generating snk file and putting in project
folder does not work !!

If you work in VS2005, go to project properties and under signing, Check
"sign the assembly" and give path to your snk file!

Jigar Mehta
http://jigar-mehta.blogspot.com

s> Hi ,
s>
cmdprompt>>> sn.exe -k key.snk
cmdprompt>>>
cmdprompt>>> Regasm asmname.dll /tlb:asmname.tlb
cmdprompt>>>
cmdprompt>>> Gacutil /i asmname.dll
cmdprompt>>>
s> I am getting the following error....
s>
s> Failure adding Assembly to the Cache Attempt to install an Assembly
s> without a Strong name..
s>
s> Please provide solution to this..
s>
s> Advance thanks
s>

AddThis Social Bookmark Button