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

Debug Diagnostic Tool에서 mscordacwks.dll을 찾지 못하는 문제

문제가 발생한 닷넷 프로세스의 메모리 덤프 파일을 뜬 후, 다른 컴퓨터에서 이를 분석하려면 다음의 2가지 파일도 함께 복사해야 합니다.

  • mscordacwks.dll
  • sos.dll

이에 대해서는 다음의 글에 설명했으니 참고하시고.

SOS.dll 확장 모듈을 버전 별로 구하는 방법
; https://www.sysnet.pe.kr/2/0/1654

windbg의 mscordacwks DLL 로드 문제 - 세 번째 이야기
; https://www.sysnet.pe.kr/2/0/11231

이후, Debug Diagnostic Tool을 이용해 분석하려고 하면 경우에 따라 다음과 같은 결과를 보여주면서 분석이 제대로 될 수 없었다고 나옵니다.

Description Recommendation 

Analysis results may be incomplete because an error occurred while initializing the CLR diagnostic runtime for w3wp.dmp.


Dump File:  w3wp.dmp

Type:  DebugDiag.DotNet.DacNotFoundException

Message:  CLR is loaded in the target, but the correct dac file cannot be found. DacFileName: mscordacwks_X86_X86_2.0.50727.3662.dll. DacLocation: 

 To fix this problem, you can copy mscordacwks.dll from the server where the dump was taken and rename it to  and add the path of the folder to the Symbol server path  by going to Tools-> Options and Settings  

 For more details on this issue, please refer to this blog.

The following symbol probe information may be helpful:
   Created SymbolReader with SymbolPath SRV*e:\Symbols*https://msdl.microsoft.com/download/symbols;srv*c:\symbols*http://msdl.microsoft.com/download/symbols;
   Probe of http://msdl.microsoft.com/download/symbols/mscordacwks_X86_X86_2.0.50727.3662.dll/53ce21935ab000/mscordacwks_X86_X86_2.0.50727.3662.dll failed: The remote server returned an error: (404) Not Found.
   Probe of http://msdl.microsoft.com/download/symbols/mscordacwks_X86_X86_2.0.50727.3662.dll/53ce21935ab000/mscordacwks_X86_X86_2.0.50727.3662.dl_ failed: The remote server returned an error: (404) Not Found.
   Probe of http://msdl.microsoft.com/download/symbols/mscordacwks_X86_X86_2.0.50727.3662.dll/53ce21935ab000/file.ptr failed: The remote server returned an error: (404) Not Found.
   Probing file F:\troubleshhot\dump\mscordacwks_X86_X86_2.0.50727.3662.dll
   Probing file mscordacwks_X86_X86_2.0.50727.3662.dll

debugdac_not_found_1.png

그렇습니다, 이상하게도 Debug Diagnostic Tool은 .dmp 파일과 같은 폴더에 있는 mscordacwks.dll 파일은 로드하려고 하지 않아 저런 오류가 발생하는 것입니다. 이럴 때는 어쩔 수 없이 DebugDiag가 원하는 경로를 맞춰주면 됩니다. 즉, 위에서 찾는 파일이 mscordacwks_X86_X86_2.0.50727.3662.dll이기 때문에 닷넷 메모리 덤프와 연관된 mscordacwks.dll 파일을 저 이름으로 단순히 변경만 해주시면 됩니다.




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







[최초 등록일: ]
[최종 수정일: 6/1/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)
10873정성태11/25/201525432.NET Framework: 540. C# - 부동 소수 계산 왜 이렇게 나오죠? (2) [3]파일 다운로드1
10872정성태11/24/201532395.NET Framework: 539. C# - 부동 소수 계산 왜 이렇게 나오죠? (1) [1]
10871정성태11/23/201528027오류 유형: 313. SignTool Error: No certificates were found that met all the given criteria.
10870정성태11/23/201528884오류 유형: 312. 윈도우 10 TH2 (버전 1511) 업데이트가 안되는 경우 [1]
10869정성태11/23/201524631오류 유형: 311. certutil 실행 오류 - 0x80070057 [1]
10868정성태11/20/201524501제니퍼 .NET: 25. 제니퍼 닷넷 적용 사례 (5) - RestSharp 라이브러리의 CPU High 현상파일 다운로드1
10867정성태10/18/201527063.NET Framework: 538. Thread.Abort로 인해 프로세스가 종료되는 현상
10866정성태10/14/201523316.NET Framework: 537. C# - Reflection의 박싱 없이 값 형식을 다루는 방법파일 다운로드1
10865정성태10/13/201523073.NET Framework: 536. Thread.Abort의 스레드 종료 지연파일 다운로드1
10864정성태10/12/201521258.NET Framework: 535. aspnet.config 파일의 설정을 읽는 방법
10863정성태10/9/201526081.NET Framework: 534. ASP.NET 응용 프로그램이 예외로 프로세스가 종료된다면?
10862정성태10/9/201524443오류 유형: 310. 비주얼 스튜디오 - Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
10861정성태10/9/201529078기타: 54. 도서: 시작하세요! C# 6.0 프로그래밍: 기본 문법부터 실전 예제까지 (2)
10860정성태10/5/201526539개발 환경 구성: 277. IIS AppPool의 시작/중단에 대한 이벤트 로그 확인 방법
10859정성태10/5/201527744.NET Framework: 533. C#에서 string 형식이 primitive일까요? [6]
10858정성태10/2/201524234VS.NET IDE: 105. Visual Studio의 단위 테스트 작성 시 Fakes를 이용한 메서드 재정의 방법 [1]파일 다운로드1
10857정성태10/1/201520280VS.NET IDE: 104. Visual C++ 프로젝트의 빌드 이벤트에서 환경 변수 사용하는 방법
10856정성태9/30/201531499.NET Framework: 532. WPF DataGrid의 데이터 바인딩 시 리플렉션의 부하는 어느 정도일까요?파일 다운로드1
10855정성태9/30/201521255.NET Framework: 531. C# - XSLT 내의 javascript에 전달한 XML 노드의 타입은?
10854정성태9/30/201521777오류 유형: 309. C# - 포인터를 쓰는 경우 VerificationException이 발생한다면?
10853정성태9/21/201519388오류 유형: 308. 공백 문자를 포함한 계정명의 권한으로 Visual Studio 확장을 설치할 때 오류 발생
10852정성태9/17/201524451VC++: 92. C++ 생성자를 DLL로부터 동적 로드해 객체를 생성한다면? [2]파일 다운로드1
10851정성태9/15/201524229.NET Framework: 530. C# - 중위식을 후위식으로 변환하는 예제파일 다운로드1
10850정성태9/14/201522923.NET Framework: 529. C# - volatile 키워드로 인한 차이점을 발생시키는 예제 [1]파일 다운로드1
10849정성태9/14/201556980오류 유형: 307. CLR20r3 오류 해결을 위해 mscorlib.dll을 덮어쓸때 주의할 점 [12]
10848정성태9/8/201527336VS.NET IDE: 103. Visual Studio의 Ctrl + F5 실행 동작파일 다운로드1
... 121  [122]  123  124  125  126  127  128  129  130  131  132  133  134  135  ...