Microsoft MVP성태의 닷넷 이야기
오류 유형: 414. UWP app을 signtool.exe로 서명 시 0x8007000b 오류 발생 [링크 복사], [링크+제목 복사],
조회: 23948
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

UWP app을 signtool.exe로 서명 시 0x8007000b 오류 발생

서명하려고 했는데, 다음과 같은 오류가 발생합니다.

C:\Windows\System32>"C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe" sign -f D:\temp\my.pfx -fd SHA256 -v "D:\bin\Output\Test_1.0.0.0_AnyCPU_Release.appx"
The following certificate was selected:
    Issued to: FF0C054D-E196-498C-BB94-91FE1A2E0A2A
    Issued by: FF0C054D-E196-498C-BB94-91FE1A2E0A2A
    Expires:   Sun Jan 01 08:59:59 2040
    SHA1 hash: F975640E08AF299B5E1C2DA42C38C58A3F9FF70F

Done Adding Additional Store
SignTool Error: An unexpected internal error has occurred.
Error information: "Error: SignerSign() failed." (-2147024885/0x8007000b)

검색해 보니 다음의 글이 나오는데요.

How to sign an app package using SignTool
; https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-sign-a-package-using-signtool

Troubleshooting app package signing errors

If the error code starts with 0x8008, such as 0x80080206 APPX_E_CORRUPT_CONTENT), it indicates that the package being signed is invalid. In this case, before you can sign the package, you must rebuild the package. For the full list of 0x8008* errors, see COM Error Codes (Security and Setup).

More commonly, the error is 0x8007000b (ERROR_BAD_FORMAT). In this case, you can find more specific error information in the event log:


APPX_E_CORRUPT_CONTENT라고 합니다. 혹시나 해서 빌드 스크립트를 다시 돌렸는데, 자세히 보니 makeappx.exe 단계에서 다음과 같은 오류가 발생했습니다.

makeappx.exe

MakeAppx : error: Package creation failed.

MakeAppx : error: 0x80070005 - Access is denied.

그래서 .appx 파일을 생성하라고 지정했던 "D:\bin\Output" 폴더의 내용을 모두 삭제한 후 다시 빌드하는 것으로 해결했습니다. 정리하자면, 어떤 이유로 인해 .appx 파일이 잠겼고 makeappx.exe는 해당 파일을 접근할 수 없어 0x80070005 오류를 냈고 결국 제대로 패키지 생성을 못한 것이었습니다.




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]







[최초 등록일: ]
[최종 수정일: 7/13/2021]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... [121]  122  123  124  125  126  127  128  129  130  131  132  133  134  135  ...
NoWriterDateCnt.TitleFile(s)
10896정성태2/17/201622231오류 유형: 320. FATAL: 28000: no pg_hba.conf entry for host "fe80::1970:8120:695:a41e%12"
10895정성태2/17/201621060.NET Framework: 546. System.AppDomain으로부터 .NET Profiler의 AppDomainID 구하는 방법 [1]
10894정성태2/17/201621803오류 유형: 319. Visual Studio에서 찾기는 성공하지만 해당 소스 코드 정보가 보이지 않는 경우
10893정성태2/16/201620399.NET Framework: 545. 닷넷 - 특정 클래스가 로드되었는지 여부를 알 수 있을까? - 두 번째 이야기
10892정성태2/16/201621064오류 유형: 318. 탐색기에서 폴더 생성/삭제 시 몇 초 동안 멈추는 현상
10891정성태2/16/201624064VC++: 95. 내 CPU가 MPX/SGX를 지원할까요? [1]
10890정성태2/15/201623903.NET Framework: 544. C# 5의 Caller Info를 .NET 4.5 미만의 응용 프로그램에 적용하는 방법 [5]
10889정성태2/14/201620243.NET Framework: 543. C++의 inline asm 사용을 .NET으로 포팅하는 방법 - 두 번째 이야기파일 다운로드1
10888정성태2/14/201618598.NET Framework: 542. 닷넷 - 특정 클래스가 로드되었는지 여부를 알 수 있을까?
10887정성태2/3/201619252VC++: 94. MPX(Memory Protection Extensions) 테스트파일 다운로드1
10886정성태2/3/201620493개발 환경 구성: 281. Intel MPX Runtime Driver 수동 설치
10885정성태2/2/201620170오류 유형: 317. Sybase.Data.AseClient.AseException: The command has timed out.
10884정성태1/11/201621422개발 환경 구성: 280. 닷넷에서 SAP Adaptive Server Enterprise 데이터베이스 사용파일 다운로드1
10882정성태1/6/201620686Windows: 113. 윈도우의 2179, 26143, 47001 TCP 포트 사용 [1]
10881정성태1/3/201622150오류 유형: 316. 윈도우 10 - 바탕/돋음 체가 사라져 한글이 깨지는 현상 [2]
10880정성태12/16/201519783오류 유형: 315. 닷넷 프로파일러의 오류 코드 정보
10879정성태12/16/201521686오류 유형: 314. Error : DEP0700 : Registration of the app failed. error 0x80070005
10878정성태12/9/201524810디버깅 기술: 75. UWP(유니버설 윈도우 플랫폼) 앱에서 global::System.Diagnostics.Debugger.Break 예외 발생 시 대응 방법
10877정성태12/9/201529259VC++: 93. std::thread 사용 시 R6010 오류 [2]
10876정성태11/26/201525286.NET Framework: 541. SignedXml을 이용한 ds:Signature만드는 방법 [3]파일 다운로드1
10875정성태11/26/201530295개발 환경 구성: 279. signtool.exe의 다중 서명 기능 [2]
10874정성태11/26/201526281개발 환경 구성: 278. 인증서와 인증서를 이용한 코드 사인의 해시 구분
10873정성태11/25/201525424.NET Framework: 540. C# - 부동 소수 계산 왜 이렇게 나오죠? (2) [3]파일 다운로드1
10872정성태11/24/201532378.NET Framework: 539. C# - 부동 소수 계산 왜 이렇게 나오죠? (1) [1]
10871정성태11/23/201528008오류 유형: 313. SignTool Error: No certificates were found that met all the given criteria.
10870정성태11/23/201528845오류 유형: 312. 윈도우 10 TH2 (버전 1511) 업데이트가 안되는 경우 [1]
... [121]  122  123  124  125  126  127  128  129  130  131  132  133  134  135  ...