Results 1 to 3 of 3

Thread: [RESOLVED] AssemblyInfo - The key container name does not exist

  1. #1

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772

    Resolved [RESOLVED] AssemblyInfo - The key container name does not exist

    Hi,

    I'm trying to rebuild a project that I've downloaded and modified and am getting the following error

    Cryptographic failure while signing assembly 'C:\Documents and Settings\...\RowSelectorColumn\obj\Debug\MetaBuilders.WebControls.RowSelectorColumn.dll' -- 'The key container name 'MetaBuilders.com' does not exist'


    Here is Assembly info file -

    VB Code:
    1. using System;
    2. using System.Reflection;
    3. using System.Runtime.CompilerServices;
    4. using System.Web.UI;
    5.  
    6. [assembly: AssemblyTitle("MetaBuilders.WebControls.RowSelectorColumn")]
    7. [assembly: AssemblyDescription("Provides datagrid row selection via checkboxes or radiobuttons")]
    8. [assembly: AssemblyCompany("MetaBuilders")]
    9. [assembly: AssemblyProduct("RowSelectorColumn")]
    10. [assembly: TagPrefix("MetaBuilders.WebControls", "mbrsc") ]
    11.  
    12. [assembly: AssemblyVersion("1.1.5000.0")]
    13. [assembly: AssemblyFileVersion("1.1.5000.0")]
    14.  
    15. [assembly: AssemblyDelaySign(false)]
    16. [assembly: AssemblyKeyFile("")]
    17. [assembly: AssemblyKeyName("MetaBuilders.com")]
    18.  
    19. [assembly:CLSCompliant(true)]

    Does anyone know how to resolve this error

    Cheers Al

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: AssemblyInfo - The key container name does not exist

    Have you create the snk file before building the project?
    Code:
    [assembly: AssemblyKeyName("MetaBuilders.com")]
    The above shows that it is using a strong name to Sign the assembly. You need to use strong naming tool from the VS .NET Command prompt to create the Strong Name file for your project. The syntax that you need to use would look like this
    Code:
    sn.exe -k MetaBuilders.com
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3

    Thread Starter
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    772

    Re: AssemblyInfo - The key container name does not exist

    Shuja Ali,

    Thanks a bunch for that, got it sorted

    Cheers Al

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width