Unofficial Content
  • This documentation is valid for:

Failed to generate a strong name key pair -- Access denied

Building bin\GeneXus.Programs.Common.dll
Compilador de Microsoft (R) Visual C# 2005 versi¢n 8.00.50727.3053
para Microsoft (R) Windows (R) 2005 Framework versi¢n 2.0.50727
(C) Microsoft Corporation 2001-2005. Reservados todos los derechos.

error CS1548: <PATH>\web\bin\GeneXus.Programs.Common.dll' -- 'Error al leer el archivo de clave 'key.snk' - El sistema no puede hallar el archivo especificado. '
error CS1548: <PATH>\web\bin\GeneXus.Programs.Common.dll' -- 'Error reading 'key.snk' file - The system cannot find the file specified'


Reasons/Solution Causes: 

It only ocurred when the "Generated strong name property" is set to true

It happens the same when the following command is executed:
                 sn.exe -k key.snk

It could be happened:

     - There framework SDK is not installed 

     -  There are no enough permission in  C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys.

         …articles that point out that C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys isn't writable by Administrators, and it needs to be in order to use sn.exe to generate a keypair.
         http://blog.lobrecht.com/rick/2007/06/01/AccessIsDeniedUsingSnexe.aspx
 
 
        … I granted my domain user access rights to C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys and that fixed it.    (Windows 7 )
         http://stackoverflow.com/questions/11887/sn-exe-fails-with-access-denied-error-message


Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant