Microsoft MVP성태의 닷넷 이야기
디버깅 기술: 4. VC++ 8.0 원격 디버깅 구성 - Side-by-Side DLL 문제. [링크 복사], [링크+제목 복사],
조회: 23606
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

오랜만에, 제 컴퓨터에서 원격 XP 컴퓨터를 대상으로 원격 디버깅을 구성하게 되었습니다.
Internet Explorer에서 활성화되는 COM 개체이기 때문에, XP 컴퓨터에 regsvr32.exe로 등록을 하려고 했는데... 이게 왠일입니까? ^^; VC++ 8.0에서의 Side-by-Side(이후, SxS로 지칭) 지원과 함께 XP/2003에서의 SxS 기능이 결합되어 정상적으로 등록이 안되는 것입니다.

등록을 시도하면 아래와 같은 오류 화면이 나옵니다.

등록 오류

LoadLibrary("...") failed - This application has failed to start 
because the application configuration is incorrect. Reinstalling the application may fix this problem.

좀 더 자세한 오류를 보기 위해서 depends.exe로 해당 DLL을 열어보니 아래와 같은 오류 화면이 나옵니다.

Depends.exe에서 확인

Error: The Side-by-Side configuration information in "C:\...DLL" contains errors. 
This application has failed to start because the application configuration is incorrect.
Reinstalling the application may fix this problem (14001).
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

또한, 이벤트 로그에도 다음과 같은 오류 3개가 차례대로 나타나게 됩니다.

오류 1:
Generate Activation Context failed for C:\...\Test.dll. 
Reference error message: The operation completed successfully.

오류 2:
Resolve Partial Assembly failed for Microsoft.VC80.DebugCRT. 
Reference error message: The referenced assembly is not installed on your system.

오류 3:
Dependent Assembly Microsoft.VC80.DebugCRT could not be found and 
Last Error was The referenced assembly is not installed on your system.

어허... 세월이 얼마나 흘렀다고 그 얼마 안되는 기간에 이런 변화가 있었는지... ^^;

해결 방법은 간단합니다. 해당 시스템에 - 위에서는 Microsoft.VC80.DebugCRT 관련 DLL을 정상적으로 활성화 시킬 수 없어서 발생 - 적절하게 관련 DLL들을 C:\Windows\WinSxS 폴더에 설정해 주거나, 아니면 해당 COM 개체가 있는 폴더에 관련 DLL 및 Manifest 파일을 넣어주면 됩니다. 전자의 방법은... ^^ 나중에 필요하면 다시 알아보고 설명드릴테니... 여기서는 쉬운 후자의 방법을 택해서 일단 원격 디버깅을 계속 해나가도록 하겠습니다.

문제 해결을 위해 "Microsoft.VC80.DebugCRT"에 해당하는 DLL과 Manifest 파일이 필요한데요. Visual Studio 2005가 설치된 개발자 PC에서 아래와 같은 폴더로 이동하면 4개의 파일을 볼 수가 있습니다.

폴더 - C:\Program Files\Microsoft Visual Studio 8\VC\redist\Debug_NonRedist\x86\Microsoft.VC80.DebugCRT

파일 - Microsoft.VC80.DebugCRT.manifest
파일 - msvcm80d.dll
파일 - msvcp80d.dll
파일 - msvcr80d.dll

위의 4개 파일을 COM 개체가 있는 폴더에 그대로 복사합니다. 대강 아래와 같은 모습이 되겠지요.

정상적으로 구성된 파일들

자, 이제 기존에 했던 것처럼, regsvr32.exe를 하면 정상적으로 등록이 되는 것을 확인할 수 있습니다.






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

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

비밀번호

댓글 작성자
 




... 166  167  168  169  [170]  171  172  173  174  175  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
758정성태8/15/200923523VS.NET IDE: 65. WPF 프로젝트용 Visual Studio 패치들 [2]
757정성태8/12/200922942오류 유형: 84. TFS 작업 항목 보기 오류 - WorkItemTypeDeniedOrNotExistException
756정성태8/9/200922507오류 유형: 83. A revocation check could not be performed for the certificate.
755정성태8/6/200920245.NET Framework: 154. 이벤트 2중 구독
754정성태7/16/200932589VS.NET IDE: 64. Visual Studio 2010 - 64bit 혼합 모드 디버깅 지원
753정성태7/15/200931111.NET Framework: 153. WPF와 WinForm의 Shown 이벤트 시점
752정성태7/14/200926659개발 환경 구성: 46. .NET Service Bus 응용 사례: SocketShifter [2]파일 다운로드1
751정성태7/9/200928011.NET Framework: 152. 순환 참조와 XmlSerializer파일 다운로드1
750정성태7/7/200927738.NET Framework: 151. Team Explorer가 설치되지 않은 PC에서 System.InvalidProgramException 예외 발생파일 다운로드1
748정성태7/2/200925708.NET Framework: 150. WPF - Property Element 사용 의미파일 다운로드2
747정성태7/1/200945370.NET Framework: 149. WPF - UI 업데이트를 바로 반영하고 싶다면? [3]파일 다운로드1
746정성태6/25/200932460.NET Framework: 148. WPF - 데이터 바인딩 시의 예외 처리 방법 [1]파일 다운로드1
745정성태6/22/200924466.NET Framework: 147. WPF - Binding에 Sibling 요소 지정 [2]파일 다운로드1
744정성태6/21/200923313.NET Framework: 146. WPF - 중첩된 ScrollViewer의 크기 제어 [2]파일 다운로드1
743정성태6/17/200927382.NET Framework: 145. Unity Container 개체 풀이
742정성태6/17/200926901.NET Framework: 144. WPF - FrameworkElement.Parent 속성이 null이라면? [3]
740정성태6/12/200924521.NET Framework: 143. WPF - Transform의 역변환파일 다운로드1
739정성태6/8/200937247.NET Framework: 142. WPF - Grid 컨트롤의 ShowGridLine 개선 [5]파일 다운로드1
737정성태6/6/200942734.NET Framework: 141. Win32 Interop - 크기가 정해지지 않은 배열을 C++에서 C#으로 전달하는 경우파일 다운로드2
734정성태6/4/200926178.NET Framework: 140. WPF - CellPadding 속성을 구현하는 Grid Layout [2]파일 다운로드1
733정성태5/29/200931584.NET Framework: 139. WPF - "M/d/yyyy h:mm:ss tt" 형식으로만 날짜를 출력하는 문제
732정성태5/27/200926582Team Foundation Server: 32. 팀 빌드 오류 확인 방법
731정성태5/27/200921571Team Foundation Server: 31. 팀 빌드 스케줄 확인 방법
730정성태5/26/200927109VS.NET IDE: 63. Visual Studio 2010 - Parallel Stacks [1]
729정성태5/25/200926819.NET Framework: 138. InternalsVisibleTo와 Public Key 값
728정성태5/23/200937361.NET Framework: 137. C#에서 Union 구조체 다루기파일 다운로드1
... 166  167  168  169  [170]  171  172  173  174  175  176  177  178  179  180  ...