Microsoft MVP성태의 닷넷 이야기
오류 유형: 117. Failed to find runtime DLL (mscorwks.dll), 0x80004005 [링크 복사], [링크+제목 복사],
조회: 29800
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 

Failed to find runtime DLL (mscorwks.dll), 0x80004005

오랜만에 "Immediate Window"에서 SOS.dll을 로드하는 데 다음과 같이 오류가 발생했습니다.

Failed to find runtime DLL (mscorwks.dll), 0x80004005
Extension commands need mscorwks.dll in order to have something to do.

실제로 mscorwks.dll이 로드되기 전에 sos.dll 관련 명령어를 실행하면 위와 같은 오류가 발생한다는 것을 지난번 글에서 한번 소개한 적이 있습니다.

(Managed) Main Method에 Break Point 걸기
; https://www.sysnet.pe.kr/2/0/469

그런데, 이번에는 뭔가 이상했습니다. 분명히 닷넷 응용 프로그램이 충분히 진행된 상태였기 때문에 가장 기본적인 mscorwks.dll이 아직까지도 로드되지 않았을리가 만무했기 때문입니다.

그래서... 지금까지 내린 명령어를 찬찬히 살펴보았지요.

!load "C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\SOS.dll"
extension c:\windows\microsoft.net\framework\v2.0.50727\sos.dll loaded

!name2ee ConsoleApplication1.exe!ConsoleApplication1.Program.Main
Failed to find runtime DLL (mscorwks.dll), 0x80004005
Extension commands need mscorwks.dll in order to have something to do.

그래도 뭐가 잘못되었는지 모르겠군요. ^^; 설마하는 생각에 lm 명령어로 확인해 보니 정말 mscorwks.dll이 없습니다. ^^; 그러다 무릎을 탁 쳤습니다. 아하~~~ ^^; 이 프로그램이 CLR 4.0 기반이어서 mscorwks.dll이 아닌 cor.dll이 로드되어 있는 것이었습니다. 따라서, sos.dll도 CLR 2.0의 것이 아닌 CLR 4.0의 것을 로드해야 하는 것이었고.

그래서, 다시 sos.dll을 정상적인 버전으로 로드시켜주면 끝!

!unload "C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\SOS.dll"
!load "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\SOS.dll"

이런 실수로 헤매지 않으려면 .loadby sos ... 명령어 사용이 좋은 습관일 수 있겠습니다. ^^

windbg ".loadby sos" 명령어
; https://www.sysnet.pe.kr/2/0/943



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







[최초 등록일: ]
[최종 수정일: 6/27/2021]

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

비밀번호

댓글 작성자
 




1  2  3  4  5  6  7  8  9  10  11  [12]  13  14  15  ...
NoWriterDateCnt.TitleFile(s)
13678정성태7/15/20248170VS.NET IDE: 191. Visual Studio 2022 - .NET 5 프로젝트를 Docker Support로 실행했을 때 오류
13677정성태7/15/20248570오류 유형: 916. MSBuild - CheckEolTargetFramework (warning NETSDK1138)
13676정성태7/14/20248292Linux: 75. gdb에서 glibc의 함수에 Breakpoint 걸기
13675정성태7/13/202410609C/C++: 166. C/C++ - DLL에서 template 함수를 export하는 방법 [1]파일 다운로드1
13674정성태7/13/20249191오류 유형: 915. Unhandled Exception: Microsoft.Diagnostics.NETCore.Client.ServerNotAvailableException: Unable to connect to Process
13673정성태7/11/20249927닷넷: 2275. C# 13 - (1) 신규 이스케이프 시퀀스 '\e'파일 다운로드1
13672정성태7/10/20247938닷넷: 2274. IIS - (프로세스 종료 없는) AppDomain Recycle
13671정성태7/10/20248266오류 유형: 914. Package ca-certificates is not installed.
13669정성태7/9/20248324오류 유형: 913. C# - AOT StaticExecutable 정적 링킹 시 빌드 오류
13668정성태7/8/20248616개발 환경 구성: 716. Hyper-V - Ubuntu 22.04 Generation 2 유형의 VM 설치
13667정성태7/7/20247220닷넷: 2273. C# - 리눅스 환경에서의 Hyper-V Socket 연동 (AF_VSOCK)파일 다운로드1
13666정성태7/7/20249101Linux: 74. C++ - Vsock 예제 (Hyper-V Socket 연동)파일 다운로드1
13665정성태7/6/20249387Linux: 73. Linux 측의 socat을 이용한 Hyper-V 호스트와의 vsock 테스트파일 다운로드1
13663정성태7/5/20248499닷넷: 2272. C# - Hyper-V Socket 통신(AF_HYPERV, AF_VSOCK)의 VMID Wildcards 유형파일 다운로드1
13662정성태7/4/20248301닷넷: 2271. C# - WSL 2 VM의 VM ID를 알아내는 방법 - Host Compute System API파일 다운로드1
13661정성태7/3/20248202Linux: 72. g++ - 다른 버전의 GLIBC로 소스코드 빌드
13660정성태7/3/20249013오류 유형: 912. Visual C++ - Linux 프로젝트 빌드 오류
13659정성태7/1/20248928개발 환경 구성: 715. Windows - WSL 2 환경의 Docker Desktop 네트워크
13658정성태6/28/20249652개발 환경 구성: 714. WSL 2 인스턴스와 호스트 측의 Hyper-V에 운영 중인 VM과 네트워크 연결을 하는 방법 - 두 번째 이야기
13657정성태6/27/20248758닷넷: 2270. C# - Hyper-V Socket 통신(AF_HYPERV, AF_VSOCK)을 위한 EndPoint 사용자 정의
13656정성태6/27/20249456Windows: 264. WSL 2 VM의 swap 파일 위치
13655정성태6/24/20249022닷넷: 2269. C# - Win32 Resource 포맷 해석파일 다운로드1
13654정성태6/24/20248720오류 유형: 911. shutdown - The entered computer name is not valid or remote shutdown is not supported on the target computer.
13653정성태6/22/20248896닷넷: 2268. C# 코드에서 MAKEINTREOURCE 매크로 처리
13652정성태6/21/202410394닷넷: 2267. C# - Linux 환경에서 (Reflection 없이) DLL AssemblyFileVersion 구하는 방법파일 다운로드2
13651정성태6/19/20249918닷넷: 2266. C# - (Reflection 없이) DLL AssemblyFileVersion 구하는 방법파일 다운로드1
1  2  3  4  5  6  7  8  9  10  11  [12]  13  14  15  ...