Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Every day I get this error:

LNK1256: ALINK operation failed (80040405) : The key container name 'NameOfKeyContainer' does not exist

The only solution I have is to delete the key container with:

sn -d NameOfKeyContainer

and add it again with:

sn -i MyCertificate.pfx NameOrKeyContainer

Can someone tell me why I've to delete an create the key container every day?

(The certificate is a Verysign certificate)

share|improve this question

migrated from stackoverflow.com Nov 9 '12 at 15:45

This question came from our site for professional and enthusiast programmers.

    
When dose it happen? You state every day is it random or is it at a specific occasion, like start up? What OS do you use? –  Pablo Karlsson Nov 9 '12 at 7:18
    
Not sure if it might help but here is a post with the same error atleast. objectmix.com/dotnet/91268-lnk1256-alink-operation-failed.html –  Pablo Karlsson Nov 9 '12 at 7:20
1  
Windows 7 Ultimate x64 and its happen every day, after switch on the computer. Sometimes (the most) morning, sometimes evening. I can't find a pattern. –  José Ángel Martínez Torres Nov 9 '12 at 9:02
    
A Verisign certificate must be added with signtool.exe and that's only done for the release build. Hard to guess what you are doing. –  Hans Passant Nov 9 '12 at 11:19
    
My solution have some assemblies that must be installed in the GAC folder, so I've to sign them using the the flag /KEYCONTAINER in Linker/Advanced/Key Container. –  José Ángel Martínez Torres Nov 9 '12 at 15:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.