2

ファイルをインポートしようとすると、既に存在すると言って失敗します。

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!
4

1 に答える 1

5

この問題は、「C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys」フォルダーのアクセス許可に関連していることが判明しました。

マシンの管理者グループに属するユーザーを使用してコマンドが実行され、管理者グループがそのフォルダーの所有者であることを確認することで、これらのコマンドを正常に実行できるようになりました。

于 2013-08-07T13:14:54.570 に答える