2017-10-23 26 views
-1

VS 게시 - 빌드 실패 -VS 2005 게시 - SignTool에서이 '키 집합이 존재하지 않는'보고 - - 실패 빌드 시스템 (HRESULT에서 예외 : 0x80070002가) 지정된 파일을 찾을 수 없습니다 2005

-를 SignTool에서는 '키 세트가 존재하지 않습니다'보고

VS 2005에서 VB 응용 프로그램을 게시하는 동안이 오류가 발생 했습니까?

+0

여기서 질문은 무엇입니까? –

+0

제목이 질문입니다. 오류 !! – Hassan

답변

0

아무 문제없이 제 VB 응용 프로그램을 수십 번 게시했지만이 끈적 오류가 발생했습니다. 서명 인증서가 있음에도 불구하고 Visual Studio에서 찾을 수 없습니다. 나는 이것이 한동안 VS가 표시하는 공황 슬로우 모션 공격 중 하나라고 생각합니다. 2 시간 이상 머리를 부수고 마침내 일부 사이트에서 제안한 응용 프로그램의 양식 n 파일 등에서 새로운 솔루션을 다시 만들지 않고 해결했습니다.

이전에도이 오류가 발생 했었지만 클라이언트 컴퓨터에서 내 응용 프로그램을 제거했다가 다시 설치해야만 새로운 인증서가 작성되었으므로 새 테스트 인증서를 작성하여이 문제를 해결했습니다. 이번에는 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는 매니페스트 수준의 변경 사항에 조금 늦게 깨어납니다. 또한 크리스탈 리포트 문제에 대해 때로는 발생합니다 : (.) ​​이러한 변경 후에 VS를 다시로드하는 것이 좋습니다. :) 1 단계는 Visual Studio에 인증서가 필요하다는 것을 상기시키기 위해서이며, 보통 로컬 키 스토어에서 찾을 수 있습니다. 그래서 키 스토어가 존재하지 않는다는 오류가 이해가 안되네 :)! 나는 또한 로컬 PC의 개인 인증서 저장소로 MMC 실행 명령의 콘솔 스냅인을 사용하여 (실행 명령에서 certmgr.msc를에서 확인할 수 있습니다 로컬 저장소의 인증서 목록) 기존 프로젝트 인증서 가져 오기를 시도

주 하지만 암호화 서비스 공급자이 필요하며 시스템에 설치되어 있지 않다는 오류가 발생합니다. 또한 인증서가 개인 인증서 저장소에 이미 있음을 확인할 수 있습니다. 그 Visual Studio는 어디서 어떤 것을 잊어 버렸습니다. 개발 컴퓨터에서 너무 많이/여러 번 게시하는 경우이 문제가 발생할 수있는 곳을 읽었습니다. : D