2013-08-07 65 views
1

嘗試導入的文件無法從文件導入RSA密鑰,稱它已經存在:使用ASPNET_REGIIS

C:\Windows\system32>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis 
    -pi "MyRsaKey" c:\key.xml 
    Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929 
    Administration utility to install and uninstall ASP.NET on the local machine. 
    Copyright (C) Microsoft Corporation. All rights reserved. 
    Importing RSA Keys from file.. 
    Object already exists. 
    Failed! 

但刪除失敗,稱它無法找到:

C:\Windows\system32>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis 
    -pz "MyRsaKey" 
    Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929 
    Administration utility to install and uninstall ASP.NET on the local machine. 
    Copyright (C) Microsoft Corporation. All rights reserved. 
    Deleting RSA Key container... 
    The RSA key container was not found. 
    Failed! 

回答

2

問題原來與「C:\ Users \ All Users \ Microsoft \ Crypto \ RSA \ MachineKeys」文件夾的權限有關。

確保使用屬於機器管理員組的用戶執行命令,並確保管理員組是該文件夾的所有者,從而使這些命令成功執行。

相關問題