2013-02-07 3 views
1

Lorsque vous appelez ceci:Erreur lors de la génération d'un certificat: Le système ne trouve pas le fichier spécifié. (Exception de HRESULT: 0x80070002)

Check(NativeMethods.CryptAcquireContextW(
       out providerContext, 
       containerName, 
       null, 
       1, // PROV_RSA_FULL 
       8)); // CRYPT_NEWKEYSET 

Je reçois ceci:

Le système ne peut pas trouver le fichier spécifié. (Exception de HRESULT: 0x80070002): Stack Trace: à System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal (Int32 errorCode, IntPtr errorInfo) à System.Runtime.InteropServices.Marshal.ThrowExceptionForHR (Int32 errorCode)

Il semble être semblable à ceci http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/feaf03f7-51a8-48d6-825f-e04c4ff2ef3a

Répondre

0

J'ai rencontré ce problème en faisant cela à partir d'une application Web. Pour moi, la solution consistait à modifier l'identité du pool d'applications de ApplicationPoolIdentity à NetworkService (Paramètres avancés du pool d'applications). Exécution d'IIS7 sur Windows 2008 Server R2.

Questions connexes