2017-10-23 36 views
-1

VSを公開 - ビルドの失敗 -VS 2005公開 - のSignToolは、「キーセットが存在しない」と報告 - - 失敗したビルドのシステムは、(HRESULTからの例外:0x80070002が)指定されたファイルを見つけることができません2005

- をSignToolのは、「キーセットは存在しません」と報告

VS 2005からVBアプリケーションを公開中にこのエラーが発生しましたか?

+0

ここでの質問は何ですか? –

+0

タイトルが質問です。エラー !! – Hassan

答えて

0

私はVBアプリケーションを何の問題もなく何度も発行しましたが、1つの素晴らしい日にこのスティッキーエラーが発生しました。署名証明書があるにもかかわらず、Visual Studioはそれを見つけることができませんでした。私はこれがVSがしばらく表示されるパニックスローモーション攻撃の1つだと思います。私の頭を2時間以上クラックさせた後、最終的には、アプリケーションのフォームから新しいソリューションを再作成せずに解決しました。

これまでも私はこのエラーに直面しましたが、新しいテスト証明書を作成することでその時点で解決しましたが、クライアントマシンでアプリケーションを削除してから再インストールしなければなりませんでした。今回はVisual Studioで新しい証明書を作成することさえできませんでした。私が試したときにこの厄介なエラーが出た - システムは、Visual Studioで指定されたファイル(HRESULT:0X80070002の例外)を見つけることができません。私は実行コマンドからcertmgr.mscを使って自分の証明書をチェックしようとしましたが、自分の証明書がローカルストアの現行ユーザーの証明書のパーソナルストアにあることがわかりました。私はまた、信頼できる証明書フォルダの下に私の証明書をコピーしましたが、無駄です。

4つのことをした後、私の問題は最終的に解決され、同じソリューションをもう一度公開しました。

 
1. Close your solution. Delete the bin and obj folders of your solution. Remove the following tag lines from your .csproj file. Copy these four lines somewhere as backup. 

<ManifestCertificateThumbprint>...</ManifestCertificateThumbprint>
<ManifestKeyFile>...</ManifestKeyFile>
<GenerateManifests>...</GenerateManifests>
<SignManifests>...</SignManifests>

Reopen your solution in VS and clean and re-build. Try Publishing after increasing the version number. It displays a different error that certificate is not found. Now close VS. Re-add those four lines back in the csproj file where they originally were in that file. 2. Reopen your project in VS and under Project Properties in Signing tab, uncheck the "Sign the Click Once manifests" and re-check again. Also do the same for Sign the assembly checkbox. Select the latest .pfx key. Save. Close and re-open Project Properties. (This pfx is the key generated whenever we create a new certificate. Check the date of the .pfx in project folder to know which was the last one you had created and use that one. Personally I don't give any password while creating new certificate on expiry.) Also, add your certificate that is present in Personal Store to the Trusted Certificate Store as well using the certmgr.msc console. Simply copy your VS application issued certificate from Personal Certificates folder to Trusted Root Certificates (if there exists a trusted root authority store) in the certificate Manager console panel - the screen that comes after typing certmgr.msc in run command. 3. Now Restart your system. Yes you read that right. 4. Open your project again in VS. Increase the version now and try Publishing. Voila, the publish goes fine.

PS:VS 2005は、マニフェストレベルで行われた変更に少し遅れて起きます。手順1では、Visual Studioに証明書が必要であることと、通常はローカルのキーストアでその場所を検出することを思い出させるためにこれを行っています。キーストアが存在しないので、エラーは意味をなさない:)私はまた、ローカルPCの個人証明書ストアにMMC runコマンドのコンソールスナップインを使用して(Runコマンドからcertmgr.mscで確認することができますローカルストアの証明書のリストを)私の既存のプロジェクトの証明書をインポートしようとした

注意私は、暗号化サービスプロバイダが必要であり、システムにインストールされていないというエラーが表示されます。また、自分の証明書が既に個人証明書ストアに存在しているのがわかります。そのVisual Studioだけがどこで、どちらがどれであるか忘れてしまった。私はどこかで、開発マシンからのパブリッシュが多すぎる/複数ある場合に起こりうることを読んでいます。 :D

関連する問題