Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

manifest - The value "x64" of attribute "processorArchitecture" in element "assemblyIdentity" is invalid.

manifest 파일에 오류가 있으면, 애당초 실행조차 안 되면서 화면에는 다음과 같은 식의 오류가 발생합니다.

The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.


문제의 원인은 다행히 이벤트 로그를 보면 나오는데요, 이번에는 다음과 같은 식의 오류 항목이 있었습니다.

Activation context generation failed for "c:\temp\ConsoleApp1\bin\Debug\ConsoleApp1.exe".Error in manifest or policy file "c:\temp\ConsoleApp1\bin\Debug\ATLProject1.dll.MANIFEST" on line 4. The value "x64" of attribute "processorArchitecture" in element "assemblyIdentity" is invalid.


그러니까, processorArchitecture의 값이 잘못되었다는 건데요.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">

  <assemblyIdentity version="1.0.0.0" processorArchitecture="x64"  ...>
  </assemblyIdentity>
  
  ...[생략]...

</assembly>

x86 아니면, x64일 거라 생각해 정한 값인데 공식 문서를 보니,

Application Manifests
; https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests

Specifies the processor. The valid values are x86 for 32-bit Windows and ia64 for 64-bit Windows. Optional.


마이크로소프트가 "ia64"로 정해 놓았군요. 이제는 역사의 뒤안길로 사라진 Itanium의 레거시를 저기서 보게 될 줄이야... ^^; 어쨌든 해결 방법은 (AMD64 환경임에도 불구하고) ia64로 하면 정상적으로 실행은 됩니다. 하지만, 이 값의 성격이 "Optional"이니 .NET 응용 프로그램의 자유로운 x86/x64 환경을 고려하면 그냥 삭제하는 것이 권장됩니다.




그런데, 편집하다 보니 다음과 같은 manifest 오류도 발생했습니다.

Activation context generation failed for "c:\temp\ConsoleApp1\bin\Debug\ConsoleApp1.exe".Error in manifest or policy file "c:\temp\ConsoleApp1\bin\Debug\ATLProject1.dll.MANIFEST" on line 17. The value "CB82A462-8F49-4434-987B-CB8FBC8A9115" of attribute "iid" in element "comInterfaceExternalProxyStub" is invalid.


무슨 의미냐면, GUID 문자열 형식에서 "{", "}" 문자가 빠졌다는 것입니다.

<comInterfaceExternalProxyStub name="IATLSimpleObject" 
                                iid="CB82A462-8F49-4434-987B-CB8FBC8A9115" 
                                proxyStubClsid32="{00020424-0000-0000-C000-000000000046}" 
                                baseInterface="{00020400-0000-0000-C000-000000000046}" 
                                tlbid="{0B2AAC68-8E4B-4BAA-85D7-4DF62A224D9F}">
</comInterfaceExternalProxyStub>

따라서 다음과 같이 수정해 주면 해결됩니다.

<comInterfaceExternalProxyStub name="IATLSimpleObject" 
                                iid="{CB82A462-8F49-4434-987B-CB8FBC8A9115}" 
                                proxyStubClsid32="{00020424-0000-0000-C000-000000000046}" 
                                baseInterface="{00020400-0000-0000-C000-000000000046}" 
                                tlbid="{0B2AAC68-8E4B-4BAA-85D7-4DF62A224D9F}">
</comInterfaceExternalProxyStub>




그나저나... 이렇게 자잘하게 오류가 나는 것이 꽤나 귀찮은 면이 있군요. ^^; 그래서 그냥 COM DLL로부터 manifest 파일을 실수 없이 생성할 도구를 만들었고, 그게 지난 글에 소개한 COMRegFreeManifest 프로그램입니다.

Reg-free COM 개체 사용을 위한 manifest 파일 생성 도구 - COMRegFreeManifest
; https://www.sysnet.pe.kr/2/0/12160




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







[최초 등록일: ]
[최종 수정일: 12/1/2023]

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

비밀번호

댓글 작성자
 




... 61  62  63  64  65  66  67  68  69  70  71  72  [73]  74  75  ...
NoWriterDateCnt.TitleFile(s)
11822정성태2/20/201911638오류 유형: 517. docker에 설치한 MongoDB 서버로 연결이 안 되는 경우
11821정성태2/20/201912097오류 유형: 516. Visual Studio 2019 - This extension uses deprecated APIs and is at risk of not functioning in a future VS update. [1]
11820정성태2/20/201915238오류 유형: 515. 윈도우 10 1809 업데이트 후 "User Profiles Service" 1534 경고 발생
11819정성태2/20/201913912Windows: 158. 컴퓨터와 사용자의 SID(security identifier) 확인 방법
11818정성태2/20/201912837VS.NET IDE: 131. Visual Studio 2019 Preview의 닷넷 프로젝트 빌드가 20초 이상 걸리는 경우 [2]
11817정성태2/17/20199988오류 유형: 514. WinDbg Preview 실행 오류 - Error : DbgX.dll : WindowsDebugger.WindowsDebuggerException: Could not load dbgeng.dll
11816정성태2/17/201912492Windows: 157. 윈도우 스토어 앱(Microsoft Store App)을 명령행에서 직접 실행하는 방법
11815정성태2/14/201911385오류 유형: 513. Visual Studio 2019 - VSIX 설치 시 "The extension cannot be installed to this product due to prerequisites that cannot be resolved." 오류 발생
11814정성태2/12/201910204오류 유형: 512. VM(가상 머신)의 NT 서비스들이 자동 시작되지 않는 문제
11813정성태2/12/201911810.NET Framework: 809. C# - ("Save File Dialog" 등의) 대화 창에 확장 속성을 보이는 방법
11812정성태2/11/20199632오류 유형: 511. Windows Server 2003 VM 부팅 후 로그인 시점에 0xC0000005 BSOD 발생
11811정성태2/11/201913421오류 유형: 510. 서버 운영체제에 NVIDIA GeForce Experience 실행 시 wlanapi.dll 누락 문제
11810정성태2/11/201911485.NET Framework: 808. .NET Profiler - GAC 모듈에서 GAC 비-등록 모듈을 참조하는 경우의 문제
11809정성태2/11/201912996.NET Framework: 807. ClrMD를 이용해 메모리 덤프 파일로부터 특정 인스턴스를 참조하고 있는 소유자 확인
11808정성태2/8/201914051디버깅 기술: 123. windbg - 닷넷 응용 프로그램의 메모리 누수 분석
11807정성태1/29/201912360Windows: 156. 가상 디스크의 용량을 복구 파티션으로 인해 늘리지 못하는 경우 [4]
11806정성태1/29/201912113디버깅 기술: 122. windbg - 덤프 파일로부터 PID와 환경 변수 등의 정보를 구하는 방법
11805정성태1/28/201913959.NET Framework: 806. C# - int []와 object []의 차이로 이해하는 제네릭의 필요성 [4]파일 다운로드1
11804정성태1/24/201912011Windows: 155. diskpart - remove letter 이후 재부팅 시 다시 드라이브 문자가 할당되는 경우
11803정성태1/10/201911488디버깅 기술: 121. windbg - 닷넷 Finalizer 스레드가 멈춰있는 현상
11802정성태1/7/201912876.NET Framework: 805. 두 개의 윈도우를 각각 실행하는 방법(Windows Forms, WPF)파일 다운로드1
11801정성태1/1/201913912개발 환경 구성: 427. Netsh의 네트워크 모니터링 기능 [3]
11800정성태12/28/201813196오류 유형: 509. WCF 호출 오류 메시지 - System.ServiceModel.CommunicationException: Internal Server Error
11799정성태12/19/201813993.NET Framework: 804. WPF(또는 WinForm)에서 UWP UI 구성 요소 사용하는 방법 [3]파일 다운로드1
11798정성태12/19/201813229개발 환경 구성: 426. vcpkg - "Building vcpkg.exe failed. Please ensure you have installed Visual Studio with the Desktop C++ workload and the Windows SDK for Desktop C++"
11797정성태12/19/201810582개발 환경 구성: 425. vcpkg - CMake Error: Problem with archive_write_header(): Can't create '' 빌드 오류
... 61  62  63  64  65  66  67  68  69  70  71  72  [73]  74  75  ...